1863009 Members
1608 Online
110446 Solutions
New Discussion

Re: DNS Updates

 
Fuad_1
Regular Advisor

DNS Updates

Hi,

How I update 'A' record only in DNS, changing IP address, without updating all DNS databases.

Thanks.
Set goals, and work to achieve them
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: DNS Updates

You change the A line in the database record(s) that contain that IP address.

Generally they are kept in /var/named or /var/named/chroot/var/named

Then you restart the named daemon.

/sbin/init.d/named stop
/sbin/init.d/named start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rajesh SB
Esteemed Contributor

Re: DNS Updates

Hi,

There is no way without restarting named daemon. You have to restart the named service.

/sbin/init.d/named {start|stop}

Regards,
Rajesh
Tvs
Regular Advisor

Re: DNS Updates

you can try

#sig_named restart
Geoff Wild
Honored Contributor

Re: DNS Updates

You don't have to restart bind to update a record....use nsupdate.

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.
Tim Nelson
Honored Contributor

Re: DNS Updates

Fuad,

Elaborate on the below part.
"without updating all DNS databases."

Are you looking to only update the local named server and not any secondaries or served servers?

Explain your environment.
Florian Heigl (new acc)
Honored Contributor

Re: DNS Updates

with bind8 and above the proper way of updating is after manually updating the zone file (and it's serial) is to issue
ndc reload [optional name of zone]

ndc and it's remote-enabled counter part rndc need extra setup, if this was not yet done, a kill -1 is the way to go.
yesterday I stood at the edge. Today I'm one step ahead.