On Wed, 8 Oct 2003 08:57 am, Gareth Walters wrote:
> G'day all,
>
> Valid characters for hostnames (DNS) are still a-z and - are they not, as
> per rfc952?
>
> I am getting some entries in my mail server logs that suggest there are a
> few hosts trying to send mail
> to me with underscores in their names.
> ---Gareth

You are correct a-z 0-9 are valid anywhere in a host/domain name, the hyphen 
"-" is only valid if it is NOT the first or last character in the 
host/domain name.  So "foo-bar" is valid, "-fancyhost-" is invalid.

I've seen plenty of invalid hostnames appearing in my mail/DNS logs and they 
always come from Windows machines.  Windows is NOT RFC compliant and will 
allow a clue-challenged user to define whatever characters they want in a 
host/domain name and then dutifully publish them on a public network (eg, 
Internet/DNS etc).  Oh yeh, but the world should be that way right? M$ says 
so.

--James
__________________________________
A random quote of nothing:

Accordion, n.:
        A bagpipe with pleats.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to