Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2005 21:21:11 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Oldie: underscores in 'names ... on -stable?
Message-ID:  <43262987.8030703@mac.com>
In-Reply-To: <20050913014339.5c91e351.torfinn.ingolfsen@broadpark.no>
References:  <20050913014339.5c91e351.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Torfinn Ingolfsen wrote:
[ ... ]
> If I try it with ping in a shell (on FreeBSD), it also fails.
> However both 'host' and 'nslookup' happily foes a lookup of that name.
> so it seems that our resolver (on FreeBSD) is to blame.
> 
> I have seen a few old (ok, from 2003) mailing list posts, which seems to
> indicate that the official rules says that 'underscores are not allowed
> in hostnames'. Is this still the case?

Yes, underscores are not valid characters for hostnames, per RFC 822 and 
others.  The underscore was not permitted because it is easily confusable with 
a hyphen or minus sign, BTW.

> If so, why is FreeBSD in rwo minds about it (nslookup and host working,
> resolver not)?

nslookup, dig, and so forth perform DNS queries directly, bypassing the system 
resolver (and flat files like /etc/hosts), and do not perform sanity checking 
of the results because these tools are intended for debugging DNS problems.

-- 
-Chuck



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