1756555 Members
2081 Online
108848 Solutions
New Discussion юеВ

Re: nslookup

 
SOLVED
Go to solution
Kyle D. Harris
Regular Advisor

nslookup

In nslookup command is that first address back
(dns1@ala.usmc.mil) my DNS server and IP address for that server?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: nslookup

nslookup(now obsolete) or dig will return the first ip adderss for the server in the DNS record.

That is normally stored in a zone file in /var/named directory

If there are multiple records for the server, it should return the first record. If you are seeing anamoulous results, post the results and if possible the contents if the zone record.

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
James A. Donovan
Honored Contributor

Re: nslookup

$ nslookup myhost
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: dns.server.address
Address: dns.server.address#53

Name: myhost.playstation.sony.com
Address: myhost.ip.address
Remember, wherever you go, there you are...
Mark Grant
Honored Contributor
Solution

Re: nslookup

Kyle,

Couldn't help butting in to this one. The guys above have given you excellent answers but if I read your question correctly, not exactly the one you were after :)

Yes, the first name and ip address is the one of the DNS server that responded to the query.
Never preceed any demonstration with anything more predictive than "watch this"
Sorrel G. Jakins
Valued Contributor

Re: nslookup

That is because you can run nslookup and point to a different dns server. Helps if you suspect a dns server of providing bad info, and you wish to compare with another. Better to look at your own stuff first before blaming the dns server.

Sorrel Jakins