Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: getaddrinfo broken on amd64 etch system

From: Aaron Hall <lisps(at)vitaphone.net>
Date: Thu Nov 29 2007 - 13:53:03 EST


[Resending (after joining whitelist) since original reply didn't show up after 2 days. Apologies if this *does* appear twice.]

On Mon, 26 Nov 2007, Bill Kelly wrote:

> Greetings,
>
> This is my first post here, so I hope I'm following the protocols
> correctly.
>
> I've done a netinstall of etch 4.0r1 with amd64 architecture on both a
> vmware system, and a real AMD Opteron system. (glibc version
> 2.3.6.ds1-13etch2)
>
> On both systems, getaddrinfo() seems to fail to do a reverse lookup
> from an IP address to the canonical hostname. It doesn't return an
> error code, it just returns the original IP address that was passed
> in. (Note, the `host` program, from the command line, works fine.)

Forgive me if I am missing something obvious, but don't you want getnameinfo() for that purpose? As I understand it (and despite the comment about replacing getipnodebyaddr() at the top of its manpage), getaddrinfo() is not supposed to perform reverse lookups.

As near as I can tell, it was a bug that that behavior ever worked.

  • Aaron
-- 
Aaron Hall           :     Advertising may be described as the science of
ahall@vitaphone.net  :     arresting human intelligence long enough to
                     :     get money from it.
                     :                          -- Stephen Butler Leacock


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Nov 29 13:53:53 2007

This archive was generated by hypermail 2.1.8 : Tue Feb 26 2008 - 11:04:28 EST


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library