Operating System - HP-UX
1832251 Members
2651 Online
110041 Solutions
New Discussion

How do I Enable DNS Automatically?

 
Nhon Le
New Member

How do I Enable DNS Automatically?

Hi,

I know very little about HP-UX. We just recently upgraded to HP-UX 11.0. Every time we rebooted HP-UX, we had to go into SAM to
enable DNS. Is there a way to set this up to do enable automatically? Thank you in advance.

NL
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: How do I Enable DNS Automatically?

Hi,

Yes there is a simple way to start named.

1) As root, cd /etc/rc.config.d
2) vi namesvrs
3) edit the line "NAMED=" or "NAMED=0" and set it to "NAMED=1".
4) Save the file and you are done.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: How do I Enable DNS Automatically?

Hi:

It sounds like you need to set NAMED=1 in /etc/rc.config.d/namesvrs . A very good guide to DNS (BIND) can be found in the "Installing and Administering Internet Services" manual (chapter-3):

http://docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html

...JRF...
Rob Mallard
Valued Contributor

Re: How do I Enable DNS Automatically?

Nhon;

Are you trying to enable the DNS server or the DNS client (resolver)?
Nhon Le
New Member

Re: How do I Enable DNS Automatically?

Thank you for all the suggestions. I tried enabled DNS by setting NAMED=1 in /etc/rc.config.d/namesvrs but
it does not start automatically.

NL
Patrick Wallek
Honored Contributor

Re: How do I Enable DNS Automatically?

Is this machine supposed to be a DNS server running named? If so, do you have all of the appropriate DNS files setup (named.boot, etc.)?

Have you checked /etc/rc.log for any errors when it tries to start DNS?

If this is not a DNS server, are you just trying to do an nslookup for another host on the network? Is your /etc/resolv.conf file set up?
Rob Mallard
Valued Contributor

Re: How do I Enable DNS Automatically?

If named doesn't start check the /var/adm/syslog/syslog.log file also. There are at least ten lines of output that should point you in the right direction (missing named.boot, missing db files)
CHRIS_ANORUO
Honored Contributor

Re: How do I Enable DNS Automatically?

To start the daemons running do:
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.