Underscores in hostnames

From: Jon Fraser <jfraser@dont-contact.us>
Date: Tue, 2 Feb 1999 15:34:44 -0500 (EST)

Hello,

        Recently a customer complained because he could
not get to beardie_fun.listbot.com. The name has an
illegal '_' in it, and squid complains.

        I compiled url.c with ALLOW_HOSTNAME_UNDERSCORES. This is
squid 2.1.patch2. Squid doens't complain about the underscore anymore
, but the DNS lookup fails. If I do an nslookup on the machine, it
works. I put an entry in the /etc/hosts for beardie_fun.listbot.com,
and everything works fine.

        This is on Freebsd 2.2.8. I took a look at the
source for gethostbyname and I don't see it checking for
illegal characters.

        Has anyone else seen this?

        Thanks,
        Jon Fraser
Received on Tue Feb 02 1999 - 13:21:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:20 MST