Operating System - HP-UX
1832910 Members
3080 Online
110048 Solutions
New Discussion

Issue with DNS client configuration...

 
OLIVA_1
Regular Advisor

Issue with DNS client configuration...

Hello,

I am trying to configure a DNS client and I'm encountering some issue....

DNS server and client are in the same network, client server can ping DNS server.

In /etc/nsswitch.conf file there is :
hosts: nis files dns

My /etc/resolv.conf file is :
domain mycompany.com
nameserver 10.145.34.29

and when I try to use nslookup I have this error message :

#nslookup sade120 10.145.34.29
Specified server is not available.
The configured name services and switch policy will be used.
*** Can't find server name for address 10.145.34.29: Non-existent domain
*** Default servers are not available
Default NIS Server: sade130
Address: 10.145.34.28

Trying NIS
Name: sade120
Address: 10.145.34.25

#


Someone can help me ?


Thanks,
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Issue with DNS client configuration...

Why is our nsswitch file searching NIS first? Normally you would want it to search files, then DNS, then NIS only as a last resort. Like this:

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=
continue TRYAGAIN=return] nis


Pete

Pete
Piergiacomo Perini
Trusted Contributor

Re: Issue with DNS client configuration...

Hi Oliva,

try to change position for dns in
/etc/nsswitch.conf , like this:


/etc/nsswitch.conf :
hosts: dns nis files .

Hope this help
regards
pg
OLIVA_1
Regular Advisor

Re: Issue with DNS client configuration...


I have changed the position in /etc/nsswitch.conf file (hosts: dns files nis) and I have the same issue.

"Specified server is not available."


#nslookup sade120 10.145.34.29
Specified server is not available.
The configured name services and switch policy will be used.
*** Can't find server name for address 10.145.34.29: Non-existent domain
*** Default servers are not available
Using /etc/hosts on: sade110

looking up FILES
Trying NIS
Name: sade120
Address: 10.145.34.25
#

Ludovic Derlyn
Esteemed Contributor

Re: Issue with DNS client configuration...

hi,

what is default server when you execute nslookup ?

regards

L-DERLYN
Pete Randall
Outstanding Contributor

Re: Issue with DNS client configuration...

Is there a DNS entry for the DNS server itself? You could try putting an entry for it in /etc/hosts, assuming you've nsswitch configured with files first.


Pete

Pete
Jaime Bolanos Rojas.
Honored Contributor

Re: Issue with DNS client configuration...

Oliva,

If you can ping your DNS, then we know there is connectivity.

We are going to assume DNS is working fine.

Whenever we tell nsswitch to look at DNS to resolve name and IP address, it says that Specified Server is not available, then I would thing that either the DNS is not define and misconfigure in the /etc/resolv.conf
Please send us the content of that file please.

Regards,

jaime.
Work hard when the need comes out.
Peter Nikitka
Honored Contributor

Re: Issue with DNS client configuration...

Hi,

it seems that no named is running on your host 10.145.34.29 .

Try your nslookup command on that server directly - does it succeed?

Does your named run on a non-standard port (std is 53)?

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Jaime Bolanos Rojas.
Honored Contributor

Re: Issue with DNS client configuration...

Sorry, just notice you have that already defined.

Jaime.
Work hard when the need comes out.
OLIVA_1
Regular Advisor

Re: Issue with DNS client configuration...

Yes named is running on host 10.145.34.29.

Yes nslookup command directly on 10.145.34.29 succeed....

named run on a standard port 53

.... :-(
OLIVA_1
Regular Advisor

Re: Issue with DNS client configuration...

I have already tried to add an entry for DNS server in /etc/hosts and crrect nsswitch.conf file to search with files first.

Without success...
OLIVA_1
Regular Advisor

Re: Issue with DNS client configuration...


It's ok now....
I have added an entry where I defined the DNS server itself and all is ok.

Thanks to all !!!