Operating System - HP-UX
1826388 Members
4590 Online
109692 Solutions
New Discussion

Re: Problem with DNS, nslookup

 
Carlos Corredor
Advisor

Problem with DNS, nslookup

[/> nslookup hp.com
Using /etc/hosts on:

looking up FILES
Trying DNS
*** can't find hp.com: Non-existent domain

This is the content of nsswitch.conf
passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

resolv.conf

cat /etc/resolv.conf
domain midomain.com
nameserver xxx.www.yyy.zzz
nameserver xxx.www.yyy.zzz

where nameserver is the dnsserver

Regards
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Problem with DNS, nslookup

Shalom,

nsswitch.conf looks good.

nameserver xxx.www.yyy.zzz
nameserver xxx.www.yyy.zzz

This in resolv.conf needs to be a numeric IP address.

It must be a numeric IP address that your server can communicate with on port 53

telnet 192.168.0.10 53

This should go through and get a funny looking prompt with the DNS server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: Problem with DNS, nslookup

Is this something just stopped working ? Or never worked ? Is there any other server(s) in the same subnet, with same nsswitch.conf and resolv.conf configuration that works properly ?
________________________________
UNIX because I majored in cryptology...
Pete Randall
Outstanding Contributor

Re: Problem with DNS, nslookup

Can you ping your nameservers?


Pete

Pete
Ganesan R
Honored Contributor

Re: Problem with DNS, nslookup

Hi,

If yours is private network and do not have public access, nslookup is not going to resolve hp.com

This is because your dns server doesn't have the dns records for hp.com
Best wishes,

Ganesh.