System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

What should I change in DNS server for changes in hosts?

 
SOLVED
Go to solution
f. halili
Trusted Contributor

What should I change in DNS server for changes in hosts?

Hello,

We have some hosts that will be changing their hostnames.

Our DNS server in on HPUX. I did not set this up so not familiar on waht to change.

What should I change on the UNIX DNS to reflect the hostname changes on the hosts? Plus what do I stop/start if needed?

Thanks,
f. halili

derekh
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: What should I change in DNS server for changes in hosts?

Shalom,

DNS has a zone file for the domain.

Host names are A records.

These files are kept in a location defined by /etc/named.conf

Here is a typical zone file:

investmenttool.com IN SOA investmenttool.com. dns1.investmenttool.com.investmenttool.com. (
2008111601 ; serial
3600 ; refresh (1 hour)
3600 ; retry (1 hour)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns1.investmenttool.com.
NS ns2.investmenttool.com.
NS ns3.investmenttool.com.
NS dns4.investmenttool.com.
MX 10 mailx.investmenttool.com.
$ORIGIN investmenttool.com.
cluster A 208.109.119.54
dns1 A 208.109.119.54
dns2 A 69.17.73.116
dns3 A 66.92.143.196
dns4 A 208.109.119.54
mercury A 208.109.119.54
cns A 208.109.119.54


Change the A records as needed.
YYYYMMDD##
2008111601

That is the serial number. Change it to reflect today's date. The last two digits are change number for the day.

Save the file.

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

You are done.

Back up the zone records before you 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
f. halili
Trusted Contributor

Re: What should I change in DNS server for changes in hosts?

Hello Steven,

The named.conf I got looks different. Let me know what you think.

thanks,
f. halili
derekh
f. halili
Trusted Contributor

Re: What should I change in DNS server for changes in hosts?

here's the file.
derekh
Steven E. Protter
Exalted Contributor
Solution

Re: What should I change in DNS server for changes in hosts?

Shalom again,

Sorry, I was unclear.

directory "/var/named"

That is where your zone records are.


zone "billing.corp.emsc.net" in {
type master;
file "db.billing.corp.emsc.net";
allow-update { none; };
forwarders { };
};

That is a reference to the zone record.

The file you edit is NOT named.conf.

It is db.billing.corp.emsc.net

You might benefit in this case from my 15 minutes verbal course on DNS.

Hit one of these two sites contact forms to give me a phone number in the US to call.

http://www.hpuxconsulting.com
http://www.isnamerica.com

Regards,

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
f. halili
Trusted Contributor

Re: What should I change in DNS server for changes in hosts?

Thanks!
derekh