Bill Kelly wrote:
Hi,
I'm in the process of trying to debug why getaddrinfo() is
failing to perform reverse DNS lookups on my etch-amd64
system. (glibc version 2.3.6.ds1-13etch2)
I've posted a tiny C program here that reproduces the
problem: http://cila-search.net/~billk/debug/getaddrinfo/
( getaddrinfo-test.c )
I'm hoping some folks on this list might be willing to
compile and run the program on your systems, and see if
yours is broken the same way.
If it works properly you should see "www.example.com".
If it's broken you should see "208.77.188.166".
For example:
$ gcc getaddrinfo-test.c
$ ./a.out
sock_addrinfo: error=0 res->ai_canonname='208.77.188.166'
You can cross-check with the host command on the command line:
$ host 208.77.188.166
166.188.77.208.in-addr.arpa domain name pointer www.example.com.
If the host command says "www.example.com" but the C program
says "208.77.188.166" then your system would appear to be
broken like mine.
Well, here indeed the program did not work:
$ ./getaddrinfo-test
sock_addrinfo: error=0 res->ai_canonname='208.77.188.166'
$ host 208.77.188.166
Name: www.example.com
Address: 208.77.188.166
libc6 version 2.6.1-1
--
Distrust all those who love you extremely upon a very slight acquaintance
and without any visible reason.
-- Lord Chesterfield
Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]