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

DNS running but not responding

 
Jean Samarani
Frequent Advisor

DNS running but not responding

Hi,


I have main issue that although the named process is running and listening on port UDP 53. I am not able to query it even locally. When I run nslookup command on the machine itself, it times out and I get the below message.

dns3:/etc #nslookup
*** Can't find server name for address 10.1.156.55: Server failed
*** Default servers are not available
Using /etc/hosts on: dns3


any idea ??

Appreciate your support.

Jean
18 REPLIES
Steven Schweda
Honored Contributor

Re: DNS running but not responding

> *** Can't find server name for address 10.1.156.55: Server failed

Is 10.1.156.55 the address of the system you
expected to be using as the DNS server? Is
that the address of "the machine itself"?

Does "/etc/hosts" provide a name for address
10.1.156.55? Is it in the DNS data base?
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

yes, The machine has two IP addresses and Named is listening on both of them.

yes it's defined in the /etc/hosts file.

let me know if you require any other informations.
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

Could be that it's only checking the hosts files without using the DNS?
Matti_Kurkela
Honored Contributor

Re: DNS running but not responding

Is your named process listening on 127.0.0.1?

Look into /var/adm/syslog/syslog.log - if named has a problem, it usually writes messages about it to the system log.

MK
MK
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

yes named is running on all IPs not only the loopback address.
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

And to answer the 2nd question question, there is nothing wrong in the syslog messages. it shows that named is loading named.conf and listening on the IP addresses without any errors.
RickT_1
Valued Contributor

Re: DNS running but not responding

Jean,

What does your nsswitch.conf file look like?

Rick
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

Hi Rick,


The file didn't exist it at the beginning at all. I tried to create it but I am not sure if I have included the correct entry. I tried to put the following entry

hosts: files dns nis

Do you think is this the problem?

Could you please advise?

thanks a lot!
RickT_1
Valued Contributor

Re: DNS running but not responding

Normally you would just copy the one that you want from the samples nsswitch.dns in the /etc directory. Look at the "nsswitch.dns" file in /etc and compare to how yours is setup for the hosts line.

Hope this helps.

Rick
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

ok thanks I will check it tomorrow ( no access now )and I will assign the points for sure if this solve the problem.
RickT_1
Valued Contributor

Re: DNS running but not responding

Jean,

Also do you have a domain name and name servers in your "/etc/resolv.conf" file?

Rick
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

yes I have inserted my domains and I have mentioned as a nameserver the IP of the machine itself. Correct me if I am wrong.
RickT_1
Valued Contributor

Re: DNS running but not responding

If this server is a client server then you would put the names of the DNS server you are getting your information from in the resolv.conf file. I haven't set up any DNS servers themselves, so if this is a DNS Server then there may be a difference.

Rick
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

yes this is a DNS server.
RickT_1
Valued Contributor

Re: DNS running but not responding

This might help answer all of your questions:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02129015/c02129015.pdf

Appendix B is the setup of a DNS Server.

Rick
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

Thanks a lot !

I am checking the link now.
Jean Samarani
Frequent Advisor

Re: DNS running but not responding

The nsswitch.dns doesn't exist. Do you have a sample one ?

Br/ Jean
RickT_1
Valued Contributor

Re: DNS running but not responding

Just make it files [NOTFOUND=return] dns

Rick