1752740 Members
5882 Online
108789 Solutions
New Discussion юеВ

DNS

 
Simon Hawkins_3
Occasional Advisor

DNS

I am trying to configure DNS on our HP and everything is ok, the dns service
(named) starts and nslookup works fine. However, when i restart the machine it
seems to hang when starting the NFS service. It sits there with wait/busy and
doesn't seem to continue. If i control-c and go to the prompt and delete
named.boot, the box boots fine, however named fails to start....anyone have any
idea why this is doing this??

My RedHat Linux box doesn't have a problem!!
10 REPLIES 10
Berlene Herren_1
Super Advisor

Re: DNS

Simon, I think this maybe a networking question, so I'll give it a try.

If you are not using NFS, go into /etc/rc.config.d/nfsconf and set the
NFS_CLIENT and NFS_SERVER to =0. This will keep the server from trying to
start it when it reboots.

Berlene
Simon Hawkins_3
Occasional Advisor

Re: DNS

By doing what you suggested solved that problem, however, it now hangs on
starting sendmail....

I edited /etc/rc.config.d/mailservs and changed export SENDMAIL_SERVER=1 to
export SENDMAIL_SERVER=0. It then continued, but then hung on starting the SNMP
HP-UX Net manager subAgent..whatever that does!

Any ideas?

Many thanks
Berlene Herren_1
Super Advisor

Re: DNS

This sounds like a name resolution problem. What does your /etc/resolv.conf
look like?

domain hostname.com
nameserver

Berlene
Simon Hawkins_3
Occasional Advisor

Re: DNS

I only have

nameserver 10.10.1.24 # DNS Server

I take it I have to add the domain name in too. Why did SAM not do this?


- Simon
Berlene Herren_1
Super Advisor

Re: DNS

I am not sure why Sam would do this, but I do know this is the way it should be
configured:

domain hp.com
nameserver

If you change it to that, does anything hang on reboot?

Berlene
Simon Hawkins_3
Occasional Advisor

Re: DNS

Yes, it still hangs.

If I start the nameserver in SAM, it starts ok, but typing "nslookup" does
nothing at all.

Please the attached, incase you need it.
Berlene Herren_1
Super Advisor

Re: DNS

Simon, is named running? Can you ping the DNS server?

Your resolv.conf looks okay.

Berlene
Simon Hawkins_3
Occasional Advisor

Re: DNS

Heh, it's working now. I deleted the configuration, and re-entered all the
information it needed. Not quite sure why it didn't work before...but there we
are!

I assume that if you want to add machine names, you enter them in hosts, as it
seems to add them into db.domain.com and the reverse lookup... Or can you enter
them directly into the dbase?

Thanks for your help.
Berlene Herren_1
Super Advisor

Re: DNS

I'm glad it's working now, Simon. Yes, the best way I think (from experience -
once I had an extra "." in my named.boot and spent hours trying to figure out
why DNS wasn't working), is to enter in your /etc/hosts first, then run
hosts_to_named.

Thanks for your patience!

Berlene