Re: libnetng : name resolution

Frédéric Raynal <[email protected]> Wed, 18 Aug 2004 08:08:04 +0200
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
Hello,

Here is the uptade table with Kirby's and David's results :


                            Linux   Mac OS X  Windows  SunOS 5.8
                             2.6      10.3    "2k"(1)  sparc (2)
gai -i 1.2.3.4                ok       ok       ok       ok
gai -i 1.2.3.4 -n             ok       ok       ok       ok
gai -i 1.2.3.4 -c           ok 0:1   ok 0:1              ok
gai -i 217.12.3.11  -c      ok 0:1   ok 0:1              ok

gai -i google.fr -n          [1]     ok 1:0     [5]      [6]
gai -i google.fr            ok 1:0   ok 1:0     ok       ok
gai -i google.fr -c         ok 1:X   ok 1:0     ok       ok 
gai -i yahoo.fr -c         [2] 1:1  [3] 1:0              [3]

gai -4 1.2.3.4              ok 0:1    [4]                ok
gai -4 1.2.3.4  -c         [7] 0:1    [4]                 
gai -4 1.2.3.4  -n            ok      [4]                ok

(1) Kirby Kuehl: dont have the exact version of Win, and dont have the
    stats on DNS queries
(2) David Barroso : SunOS appserver 5.8 Generic_108528-15 sun4u sparc
    SUNW,Sun-Blade-100, dont have the stats on DNS queries

[1] unable to resolve (err=-2: Name or service not known)
[2] ascii -> addr: name=yahoo.fr addr=217 12 3 11  (FQDN ok)
[3] ascii -> addr: name=yahoo.fr addr=217 12 3 11
[4] getnameinfo() failed (Unknown error: 0)
[5] unable to resolve (err=11001: No such host is known . )
[6] unable to resolve (err=8: host/servname not known)
[7] getnameinfo() failed (Success)
[8] getnameinfo() failed (Error 0)

X:Y means  X DNS request of type A, and Y of type PTR. When nothing is
speicied, it means there is no DNS request.


Note that the "gai" program has been slightly improved and is now
available in the sample directoy. Moreover, you dont have to be root
anymore to do name resolution ;-) 

BTW, the new LIBNET_PCAP mode does not require to be root to, very
practical to perform tests.

	Fred Raynal