1819866 Members
2419 Online
109607 Solutions
New Discussion юеВ

flush DNS cache?

 
SOLVED
Go to solution
Dean M. Durant
Occasional Advisor

flush DNS cache?

Hello, is there a way to flush the DNS cache in hp-ux 11.11? We get reverse lookups that fail when people are trying to connect using exceed from laptops whose IP addresses have changed. They can still connect using xstart, but the question of flushing the DNS cache still came up. Apparently there is a command in that other OS to ipconfig /flushdns. People are asking, why not in HPUX? Thanks, Dean
6 REPLIES 6
Jeff_Traigle
Honored Contributor

Re: flush DNS cache?

I could be mistaken (and someone will correct me if I'm wrong)...

I don't recall ever seeing a way to flush DNS cache in HP-UX. The reason? I don't think an HP-UX DNS client caches anything. The DNS model doesn't account for caching on the client in any explanation I've ever read. I think that's one of those Microsoft "we're going to do things our own way" things. :)
--
Jeff Traigle
Dean M. Durant
Occasional Advisor

Re: flush DNS cache?

I also heard something like this could be done in Solaris. Don't know if that is true or not.
Jeff_Traigle
Honored Contributor
Solution

Re: flush DNS cache?

Note, I was referring to an HP-UX client. Now there is such a thing as a cache only DNS server on HP-UX and you *can* flush that cache. See the following thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=65348
--
Jeff Traigle
rick jones
Honored Contributor

Re: flush DNS cache?

Indeed, the HP-UX DNS resolver code does not include any caching, so there is nothing to flush. And indeed, one can simulate some of the behaviour of other platform's resolver caches by running a local caching-only name server.

Now, one _might_ consider /etc/hosts a form of cache, and "flushing" that would involve the use of an editor :) The extent to which that is involved depends on your /etc/nsswitch.conf file.
there is no rest for the wicked yet the virtuous have no pillows
Geoff Wild
Honored Contributor

Re: flush DNS cache?

If you run a BIND 9.2.0 or newer name server, you can flush the cache with rndc flush. With older name servers, you need to kill the name server and restart it to flush the cache. You can do that in one fell swoop with rndc restart or rndc exec.

Clearing the cache is really a side effect of killing the name server, since BIND name servers only store cached data in memory. Since restarting the name server takes time, especially if the name server is authoritative for many zones, rndc flush is a better option.

If you run multiple views on your BIND 9.2.0 or newer name server, you can flush the cache in only one view using rndc flush viewname. For example:

# rndc flush internal
BIND 9.3.0 will support flushing all of the records attached to a particular domain name with rndc flushname. For example:

# rndc flushname cnn.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dean M. Durant
Occasional Advisor

Re: flush DNS cache?

These are all good, useful answers. Thanks.