From faulkner@utgard.hos.net  Sun Feb  2 11:18:29 1997
Received: from utgard.hos.net (utgard.hos.net [205.238.129.45])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA02698
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Feb 1997 11:18:27 -0800 (PST)
Received: (from root@localhost) by utgard.hos.net (8.8.4/8.7.3) id NAA25569; Sun, 2 Feb 1997 13:18:22 -0600 (CST)
Message-Id: <199702021918.NAA25569@utgard.hos.net>
Date: Sun, 2 Feb 1997 13:18:22 -0600 (CST)
From: Boyd Faulkner <faulkner@utgard.hos.net>
Reply-To: faulkner@utgard.hos.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: gethostbyname does not work with hosts with underscores.
X-Send-Pr-Version: 3.2

>Number:         2638
>Category:       bin
>Synopsis:       gethostbyname does not work with hosts with underscores.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb  2 11:20:02 PST 1997
>Closed-Date:    Sun Feb 2 12:16:12 PST 1997
>Last-Modified:  Sun Feb  2 13:00:01 PST 1997
>Originator:     Boyd Faulkner
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

>Description:

gethostbyname does not work with hostnames that contain an underscore.
ping puma_cb19.austx.tandem.com should produce host resolution but not ping.
<Host is behind firewall>.  2.1.6.1 works and returns an address.

>How-To-Repeat:

ping puma_cb19.austx.tandem.com

This works on freefall.  It does not work on my 3.0 box.  It returns
[faulkner@utgard.hos.net]  /omni/home/faulkner 
> ping puma_cb19.austx.tandem.com
ping: unknown host puma_cb19.austx.tandem.com

 while 

[faulkner@utgard.hos.net]  /omni/home/faulkner 
> ping cat.austx.tandem.com
PING cat.austx.tandem.com (131.124.4.198): 56 data bytes

yields an address.


>Fix:
	
Don't know yet.  Need to compare sourcefrom 2.1.6 and current.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sun Feb 2 12:16:12 PST 1997 
State-Changed-Why:  
Not a bug, a feature.  If you don't like this feature, complain 
to Paul Vixie but don't expect much sympathy.  he's been threatening 
for years to make RFC name compliance mandatory rather than optional 
in BIND, and now that he's finally done it, sites with illegal 
names (like this one) have to clean up their act or get off the Internet, 
basically. 

From: roberto@keltia.freenix.fr (Ollivier Robert)
To: faulkner@utgard.hos.net
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/2638: gethostbyname does not work with hosts with underscores.
Date: Sun, 2 Feb 1997 21:07:45 +0100

 According to Boyd Faulkner:
 > gethostbyname does not work with hostnames that contain an underscore.
 > ping puma_cb19.austx.tandem.com should produce host resolution but not ping.
 > <Host is behind firewall>.  2.1.6.1 works and returns an address.
 
 That's expected. "_" is forbidden in hostnames and bind now enforces it.
 -- 
 Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.freenix.fr
   FreeBSD keltia.freenix.fr 3.0-CURRENT #37: Mon Jan 27 23:21:10 CET 1997

From: j@uriah.heep.sax.de (J Wunsch)
To: faulkner@utgard.hos.net
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/2638: gethostbyname does not work with hosts with underscores.
Date: Sun, 2 Feb 1997 21:47:48 +0100

 As Boyd Faulkner wrote:
 
 > gethostbyname does not work with hostnames that contain an underscore.
 
 This is intentions and has been discussed many times before.
 
 Bug the owner of that host to have its name fixed.  Underscores are
 invalid characters in hostnames.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
>Unformatted:
