1832460 Members
3082 Online
110043 Solutions
New Discussion

Refresh the DNS table

 
SOLVED
Go to solution
Jim Lynn
Contributor

Refresh the DNS table

HPUX 10.20 - need to let a single user refresh the DNS table - as they add printers the need to update the hosts list...got an easy script to do this ? I stop/start inetd but thats a little drastic but if its all we have.
I'm really new
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Refresh the DNS table

You dont need to do that at all.
1) ps -e | grep named and note the PID of named
2) kill -1 PID

That will force a reconfig of named.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Refresh the DNS table

Hi again:

You must also remember to increment the serial value of all the tables that you update so that the reconfig will take place and push the changes to the slave servers.
If it ain't broke, I can fix that.
hpuxrox
Respected Contributor

Re: Refresh the DNS table

Issue this command

ps -ef | grep named | grep -v grep | awk '{print $2}' | xargs kill -HUP
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Refresh the DNS table

Jim,

Use 'sig_named restart' to re-read the database.

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

Re: Refresh the DNS table

Hello,

Try
sig_named kill
sig_named restart


-USA..
Good Luck..
hpuxrox
Respected Contributor

Re: Refresh the DNS table

Jim,

The others will work but,
Sridhar's post would be the the best method

Sachin Patel
Honored Contributor

Re: Refresh the DNS table

If we are talkin about DNS then don't forget to increment serial number or else it will not update the map.

1. add new host
2. increment serial number or run script host_to_named to anyother options.
3. sig_named restart to reread the maps.

Sachin
Is photography a hobby or another way to spend $