From nobody@FreeBSD.org  Thu Aug  2 07:08:47 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id AFF6F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Aug 2001 07:08:45 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f72E8jB34636;
	Thu, 2 Aug 2001 07:08:45 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108021408.f72E8jB34636@freefall.freebsd.org>
Date: Thu, 2 Aug 2001 07:08:45 -0700 (PDT)
From: "Alexander S. Usov" <usov@ukr.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DNS resolver problem (gethostbyaddr)
X-Send-Pr-Version: www-1.0

>Number:         29388
>Category:       misc
>Synopsis:       DNS resolver problem (gethostbyaddr)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 02 07:10:24 PDT 2001
>Closed-Date:    Thu Aug 2 16:08:59 PDT 2001
>Last-Modified:  Thu Aug 02 16:09:33 PDT 2001
>Originator:     Alexander S. Usov
>Release:        4-STABLE
>Organization:
>Environment:
FreeBSD darkini.itv 4.3-STABLE FreeBSD 4.3-STABLE #1: Wed Aug  1 13:48:00 EEST 2001     root@darkini.itv:/usr/src/sys/compile/DARKINI i386
>Description:
When I perform dns lookup with gethostbyaddr(3), and destination machine
has an underscore (_) in its name, I get an NO_RECOVERY error code.
When I use dig(1) or nslookup(1) I get a correct answer.

Note:
As a DNS server/cache I use djbdns-1.05.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dima@unixfreak.org>
To: "Alexander S. Usov" <usov@ukr.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/29388: DNS resolver problem (gethostbyaddr) 
Date: Thu, 02 Aug 2001 08:09:09 -0700

 "Alexander S. Usov" <usov@ukr.net> writes:
 > >Description:
 > When I perform dns lookup with gethostbyaddr(3), and destination machine
 > has an underscore (_) in its name, I get an NO_RECOVERY error code.
 > When I use dig(1) or nslookup(1) I get a correct answer.
 
 No, gethostbyaddr() give the correct response because an underscore
 isn't a valid character in a hostname.  dig and nslookup are
 maintained by ISC; please talk to them about fixing their programs, or
 at least making the non-compliant behavior optional (e.g., with a
 command line flag).

From: David Malone <dwmalone@maths.tcd.ie>
To: "Alexander S. Usov" <usov@ukr.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/29388: DNS resolver problem (gethostbyaddr)
Date: Thu, 2 Aug 2001 16:43:14 +0100

 On Thu, Aug 02, 2001 at 07:08:45AM -0700, Alexander S. Usov wrote:
 > >Description:
 > When I perform dns lookup with gethostbyaddr(3), and destination machine
 > has an underscore (_) in its name, I get an NO_RECOVERY error code.
 > When I use dig(1) or nslookup(1) I get a correct answer.
 
 An _ in a hostname is not legal. Resolver libraries and name servers
 are beginning to be more strict and refuse to resolve such names.
 I suspect this is what you are seeing.
 
 	David.

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: "Alexander S. Usov" <usov@ukr.net>,
	freebsd-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: misc/29388: DNS resolver problem (gethostbyaddr)
Date: Thu, 2 Aug 2001 09:22:39 -0700

 DNS does not allow '_' (underscores) in host names.  This is per
 one of the DNS RFC's (but of course I cannot find the number right
 now).
 
 - JimP
 
 On Thursday 02 August 2001 07:08 am, Alexander S. Usov wrote:
 > >Number:         29388
 > >Category:       misc
 > >Synopsis:       DNS resolver problem (gethostbyaddr)
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Thu Aug 02 07:10:24 PDT 2001
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Alexander S. Usov
 > >Release:        4-STABLE
 > >Organization:
 > >Environment:
 >
 > FreeBSD darkini.itv 4.3-STABLE FreeBSD 4.3-STABLE #1: Wed Aug  1 13:48:00
 > EEST 2001     root@darkini.itv:/usr/src/sys/compile/DARKINI i386
 >
 > >Description:
 >
 > When I perform dns lookup with gethostbyaddr(3), and destination machine
 > has an underscore (_) in its name, I get an NO_RECOVERY error code.
 > When I use dig(1) or nslookup(1) I get a correct answer.
 >
 > Note:
 > As a DNS server/cache I use djbdns-1.05.
 >
 > >How-To-Repeat:
 > >
 > >Fix:
 > >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 
 -- 
 --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
     __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
  _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation 
 (*)/ (*)  
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Thu Aug 2 16:08:59 PDT 2001 
State-Changed-Why:  
'_' isn't a valid character in hostnames 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29388 
>Unformatted:
