How to Remove Clear Cache Entry (DNS)

Unanswered Question
Aug 24th, 2006


1. I configured DNS on a cisco router using the cli ip name-server x.x.x.x

2. Tried to ping one of the devices using its hostname.

3. I removed dns server on router and now there is no 'ip name-server x.x.x.x' on the device

4. Ping the same device, host1 again

and the ping is working.

It seems there is an entry for it in the Cache and only after I reload the device it is cleared.

Can I know if there is some cli that I can use to remove the entry from cache without reloading the device?



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Brandon Buffin Sat, 08/26/2006 - 09:16

Use the enable mode command "clear host" such as:

router#clear host hostname (to delete a specific host)


router#clear host * (to delete all hosts)

Hope this helps. If so, please rate the post.


dradhika Thu, 09/07/2006 - 22:14

Hi Brandon,

Thanks for the information.

I tried 'clear host all *' and it removed all the entries from hosttable.




This Discussion