1833059 Members
2733 Online
110049 Solutions
New Discussion

DNS Cashe

 
Stuart Powell
Super Advisor

DNS Cashe

When we make a change to the hosts file on our DNS system we issue a kill -1 on the named PID to have it reload the database. Does anyone know what command to use force the daemon to dump it's cashe. The cashe dump could be a second command.
Sometimes the best answer is another question
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: DNS Cashe

You can send a SIGINT (kill -2) to named to cause it cache and current database to be dumped to /var/tmp/named_dump.db.
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: DNS Cashe

"sig_named dump" will dump it's database into
/var/tmp/named_dump.db.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sachin Patel
Honored Contributor

Re: DNS Cashe

#sig_named restart
should reload the new database.
#man sig_named

Sachin
Is photography a hobby or another way to spend $
John Bolene
Honored Contributor

Re: DNS Cashe

Using the restart will reload any primary or secondary DNS files, but I have not found that it clears the cache.

I normally have to sig_named kill and restart the daemon with /usr/sbin/named

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Sean OB_1
Honored Contributor

Re: DNS Cashe

What is it that you are having a problem with? Is the DNS not resolving the changes correctly?

I've never had a problem with this as long as you make your change, and remember to change the serial number of the db file.

Then a kill -hup of the named process and all works fine.

Sean OB_1
Honored Contributor

Re: DNS Cashe

Stuart,

Just a reminder to give points out to those who answered your questions. It only takes a moment, and helps make the forums more useful to everyone.

Sean