Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2001 18:20:01 -0800 (PST)
From:      Makoto Matsushita <matusita@jp.freebsd.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/32318: no userland tool available to test resolver facilities
Message-ID:  <200111270220.fAR2K1F07891@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/32318; it has been noted by GNATS.

From: Makoto Matsushita <matusita@jp.freebsd.org>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: bin/32318: no userland tool available to test resolver
 facilities
Date: Tue, 27 Nov 2001 11:11:10 +0900

 Anyway how about putting this tool as a port?  It would be helpful for
 other users.
 
 anarcat> However, no tool is available to query the resolver (in the
 anarcat> sense of gethostbyname/addr() routines)
 anarcat> transparently. Host(1), dig(1), nslookup(1) all use the name
 anarcat> servers, and not the /etc/hosts files or NIS/YP.
 
 But only host(1) and its friend does check only DNS, these are the
 exceptions.  You can use other networking tools such as ping(8),
 telnet(1), and more (I don't know which tool fits for you).
 
 anarcat> Try to do a address to hostname lookup using a command line
 anarcat> tool for an address in /etc/hosts that will actually use
 anarcat> gethostbyname(3).
 
 It would be better that you use getaddrinfo(3) instead.  This tool
 only works with IPv4 address but FreeBSD knows what IPv6 is.
 
 -- -
 Makoto `MAR' Matsushita

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111270220.fAR2K1F07891>