Re: libnetng : name resolution

David Barroso <[email protected]> Tue, 17 Aug 2004 11:41:39 +0200
Newsgroups gmane.comp.security.libnet
Message-ID <20040817094139.GC32396@moskovskaya>
SunOS 5.8 (sparc) results:

SunOS appserver 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-100

sh-2.03# ./gai -i 1.2.3.4
ascii -> addr: name=1.2.3.4 addr=1 2 3 4
sh-2.03# ./gai -i 1.2.3.4 -n
ascii -> addr: name=1.2.3.4 addr=1 2 3 4
sh-2.03# ./gai -i 1.2.3.4 -c
ascii -> addr: name=1.2.3.4 addr=1 2 3 4
sh-2.03# ./gai -i 217.12.3.11  -c
ascii -> addr: name=217.12.3.11 addr=217 12 3 11
sh-2.03# ./gai -i google.fr -n
libnet_resolve_ascii2addr(): unable to resolve (err=8: host/servname not
known)
sh-2.03# ./gai -i google.fr
ascii -> addr: name=google.fr addr=216 239 57 104
sh-2.03# ./gai -i google.fr -c
ascii -> addr: name=google.fr addr=216 239 57 104
sh-2.03# ./gai -i yahoo.fr -c
ascii -> addr: name=yahoo.fr addr=217 12 3 11
sh-2.03# ./gai -4 1.2.3.4
addr -> ascii: name=1.2.3.4 addr=1 2 3 4
sh-2.03# ./gai -4 1.2.3.4  -c
libnet_resolve_addr2ascii(): getnameinfo() failed (Error 0)
sh-2.03# ./gai -4 1.2.3.4  -n
addr -> ascii: name=1.2.3.4 addr=1 2 3 4

Regards