[ale] Reverse DNS lookup

Michael H. Warfield mhw at wittsend.com
Mon Aug 6 10:31:03 EDT 2001


On Mon, Aug 06, 2001 at 10:09:09AM -0400, Ben Ostrowsky wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1


> >How do I do this with Linux. Need to resolve an few IP addresses to host names
> >for IDS systems.

> dig -x 206.72.132.166

> (This gives you a LOT of data.)

> On my RH7.1 system, "nslookup 206.72.132.166" works too:

> Server:  snoopy.tblc.org
> Address:  206.72.132.7

> Name:    sunline.tblc.org
> Address:  206.72.132.166

> The answer is sunline.tblc.org.

	You can also do "host 206.72.132.166":

166.132.72.206.in-addr.arpa. domain name pointer dynix.tblc.lib.fl.us.

	The "bind" crew will tell you to not use nslookup.  It's
deprecated and has its own way of looking things up.  It's failures
do not accurately represent failures in the DNS servers and it may
not accurately represent results you get from "gethostbyname" or
"gethostbyaddress".  That's because nslookup has it's own resolver
algorithms and using the resolver lib directly.  Dig is better for
diagnosing DNS problems (more relevant detailed diagnostic information)
and host is better for simple lookups (forward and reverse) since host
uses the same calls that an application would.

> (And, yes, you can telnet in -- by design.  It's one of those proprietary 
> library systems with a telnet frontend, and no ADA-accessible Web frontend 
> just yet.)
> 
> Ben
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
> 
> iQA/AwUBO26lBROs0zj46rDTEQJTTwCfY5isByJm3SxizwyIEtSBKa6Cvt8AoMcU
> wCFIlh2buH4/yNeG3F6SRHC4
> =U7+n
> -----END PGP SIGNATURE-----
> 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list