[NTLUG:Discuss] Bug in gethostbyaddr?

Neil Aggarwal neil at JAMMConsulting.com
Sun Mar 14 11:02:16 CST 2004


Rick:

So, this looks like a platform specific and timing stupidity?
Arrgh.

Thanks,
	Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com

> -----Original Message-----
> From: discuss-bounces at ntlug.org 
> [mailto:discuss-bounces at ntlug.org] On Behalf Of Rick Cook
> Sent: Sunday, March 14, 2004 1:47 AM
> To: NTLUG Discussion List
> Subject: Re: [NTLUG:Discuss] Bug in gethostbyaddr?
> 
> 
> On Friday 12 March 2004 09:57, Neil Aggarwal wrote:
> > Hello:
> >
> > I am trying to use gethostbyaddr to find the reverse DNS entry for
> > the IP 216.234.230.2 but it gives me back a null result.
> >
> > When I do a dig on that IP, I get many results.  Is that throwing
> > off gethostbyaddr?
> >
> > I have tried this on RedHat 9 and Fedora Core 1 and they both
> > act the same.
> >
> 
> Using your code as provided, I got =>
> 
> $ ./gethost
> Checking  216.234.230.2
> Got back mail.ppadot.com
> Checking  207.229.77.210
> Got back 207-229-77-210.cortland.com
> 
> This was on Debian/unstable powerpc:
> 
> 
> When I started composing this message, I tried again and got:
> 
> $ ./gethost
> Checking  216.234.230.2
> Hostentry is null
> Checking  207.229.77.210
> Got back 207-229-77-210.cortland.com
> 
> then a few seconds later:
> 
> $ ./gethost
> Checking  216.234.230.2
> Got back mail.ppadot.com
> Checking  207.229.77.210
> Got back 207-229-77-210.cortland.com
> 
> 
> dig -x 216.234.230.2 (or host 216.234.230.2) gives only 
> mail.ppadot.com.
> 
> Earlier, I got a whole long list.
> 
> 
> 
> Rick
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 




More information about the Discuss mailing list