1832307 Members
2222 Online
110041 Solutions
New Discussion

Adding a new dns server

 
Davina Fogle
Occasional Contributor

Adding a new dns server

what are the procedures for adding a new dns address in hpux?
3 REPLIES 3
RAC_1
Honored Contributor

Re: Adding a new dns server

On hp-ux file /etc/resolv.conf controls, which dns servers in which order will be looked for name resolution.

The file /etc/nsswitch.conf controls, how name resolution will take place and for what services..
There is no substitute to HARDWORK
Sundar_7
Honored Contributor

Re: Adding a new dns server

Are u trying to add a new DNS address to the DNS server that is running on HP-UX ?

You got be little more clear.

If the answer to the above question is yes, then there are couple of ways you can do it but depends if you use any kind of version control for the DNS database.

Simplest way would be to edit /etc/hosts the DNS server is based on. Ensure /etc/hosts is in sync with the current DNS entries. Update /etc/hosts and run hosts_to_named command and restart named.

Or else you can directly edit DNS database files which is little more complicated.

Let us what is that you are tying to do.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: Adding a new dns server

As RAC says - add server to /etc/resolv.conf - take effect immediately.

In /etc/nsswitch.conf:

hosts: files [NOTFOUND=CONTINUE] dns

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.