From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f950eb2b417b3328 X-Google-Attributes: gidfee84,public From: "Scott Nichol" Subject: Re: nslookup & gethostbyaddr Date: 1999/07/14 Message-ID: #1/1 X-Deja-AN: 501036210 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@home.net X-Trace: news.rdc1.pa.home.com 931980125 24.3.116.69 (Wed, 14 Jul 1999 12:22:05 PDT) Organization: @Home Network MIME-Version: 1.0 Reply-To: "Scott Nichol" NNTP-Posting-Date: Wed, 14 Jul 1999 12:22:05 PDT Newsgroups: comp.unix.osf.osf1 Scott Nichol wrote in message ... >I can do a reverse DNS lookup using nslookup, but with the same address, the >gethostbyaddr() function fails (h_errno == 3 -> NO_RECOVERY). The machines >at these addresses run NT and use DHCP. However, I am able to resolve >certain other NT machines using DHCP. The inability to resolve is giving me >a headache with tcp_wrappers. And the problem is... An underscore (_) character in the NT machine name. This is also used as the host name, which is contrary to RFC 952. I figured this out by looking at FreeBSD source for gethostbyname, in which I discovered it was validating the name against "legal" characters. -- Scott Nichol e-mail: Remove nospam. from reply address.