Allow underscores in DNS names

Dag-ErlingSmørgrav des at ofug.org
Sun Mar 30 06:16:42 PST 2003


"M. Warner Losh" <imp at bsdimp.com> writes:
> True.  However, they are still relevant today.  '_' is illegal in DNS
> names

Says the RFC.  IIRC, BIND traditionally did not enforce this, though
it does now for A records in master zones unless you change the
"check-names" setting (it seems to allow it for TXT records though).

>        is rejected by the majority of hosts on the internet

Wrong.  We (*BSD) are pretty much the only ones not to accept
underscores in host names.  I've tested Windows XP, Solaris 8 and
Linux 2.4.18; feel free to try 'ping under_score.ofug.org' on other
systems and report your findings here.

>                                                             and
> generally is a bad idea.

I don't see why, and I've never heard any other argument against it
than "the RFC says so".

DES
-- 
Dag-Erling Smørgrav - des at ofug.org


More information about the freebsd-arch mailing list