Solaris10 sparc nslookup error

Hi Experts,

While trying to query nameserver using nslookup it is giving following error.

root@prod # nslookup 10.1.61.21

** server can't find 26.61.1.10.in-addr.arpa.: NXDOMAIN
root@prod #

(1)
/etc/hosts
10.1.61.2 prod

(2)I also added domain and namservers accordingly in /etc/resolv.conf

Apart from above two mentioned, are there any configurations that needs to made in order to resolve above error?

Thanks in Advance for your help!!

Sounds like you could possibly not have a reverse DNS pointer setup on your DNS server to match an IP Address to a hostname.

Odd that the IP address you give doesn't match that returned. Is ther returned address your DNS server perhaps? You may need a reverse entry for that too.

Can you confirm the content of /etc/netsvc.conf and /etc/resolv.conf or /etc/nsswitch.conf please (not sure which it is on Solaris), taking out anything company sensitive, naturally.

Robin
Liverpool/Blackburn
UK

Thanks for the reply guys..

Yes,nslookup is returning different IP address than given and it is not even DNS server address.

Here is the content of the config files...

[EMAIL="root@prod"]

 
root@prod # ls -ltr /etc/netsvc.conf
/etc/netsvc.conf: No such file or directory
root@prod #
 
root@prod # more /etc/resolv.conf
domain <company domain name>
nameserver <IP of name server1> 
nameserver <IP of name server2>
nameserver <IP of name server3>
root@prod #
 
root@prod # more /etc/nsswitch.conf
passwd:     files
group:      files
hosts:     files dns
ipnode:   files dns
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
netgroup:   files
automount:  files
aliases:    files
services:   files
printers:       user files
auth_attr:  files
prof_attr:  files
project:    files
tnrhtp:     files
tnrhdb:     files
root@prod #

[/EMAIL]

Please populate the /etc/resolv.conf with the ipaddress and the name and try it.

Hi,

/etc/resolv.conf is already populated with required IP address,I have removed those IPs in the above post as those IPs are company specific.

Thanks!!!

Per the online man page for "nslookup":

"query Internet name servers interactively" does not include searching /etc/hosts.

Synopsis - man pages section 1M: System Administration Commands