How to Remove Clear Cache Entry (DNS)

Unanswered Question
Aug 24th, 2006
User Badges:
  • Cisco Employee,

Hi,

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?


Thanks,

Radhika

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Brandon Buffin Sat, 08/26/2006 - 09:16
User Badges:
  • Purple, 4500 points or more

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


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


or


router#clear host * (to delete all hosts)


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


Brandon

dradhika Thu, 09/07/2006 - 22:14
User Badges:
  • Cisco Employee,

Hi Brandon,


Thanks for the information.

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

Thanks,

Radhika

rainmaker1701 Thu, 02/16/2017 - 15:22
User Badges:

Damnably irritating that all search queries lead back to this post.

This IS NOT the answer for a 2911 using DNS Views I can tell you.

I've yet to find the answer to my caching issue, but you can be sure I will post it when I find out!

Actions

This Discussion