Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 16:39:23 -0500
From:      "Ken Menzel" <kenm@icarz.com>
To:        "David J Duchscher" <daved@nostrum.com>
Cc:        "Marius Strom" <marius@marius.org>, <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Resolver Issues (non valid hostname characters)
Message-ID:  <0aa401c2f317$00d32470$e1db7bd1@kenxp>
References:  <B7B04CE6-5EFB-11D7-8571-0003930B3DA4@nostrum.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I understand,  even though the DNS server, windows linux,  nslookup
and dig see the name,  you can't get to it with any tool using the
resolver.  BTW if you put the name in /etc/hosts you can still use it
with ping etc (this fooled me!), but it won't allow it from DNS.  Why
wouldn't we use the same rules on the hosts file?  Should etc/hosts be
'looser'?

Ken
----- Original Message -----
From: "David J Duchscher" <daved@nostrum.com>
To: "Ken Menzel" <kenm@icarz.com>
Cc: "Marius Strom" <marius@marius.org>; <freebsd-stable@FreeBSD.ORG>
Sent: Tuesday, March 25, 2003 2:55 PM
Subject: Re: Resolver Issues (non valid hostname characters)


> Try pinging this 'dont_work.net.tamu.edu'.  Then try doing a
> nslookup or dig on the name.  You will find that in
> /usr/src/lib/libc/net/res_comp.c at line 133 in the function
> res_hnok() the code that restricts DNS queries to RFC 952.
>
> DaveD
>
> On Tuesday, March 25, 2003, at 10:39  AM, Ken Menzel wrote:
>
> > hi,
> > I am not sure where you think freebsd needs support for
underscores in
> > the resolver.
> > freebsd2# hostname -s free_bsd2
> > freebsd2# hostname
> > free_bsd2.icarz.com
> > freebsd2#vi /etc/hosts   (edit host file here adding new name)
> > freebsd2# ping free_bsd2
> > PING free_bsd2.icarz.com (207.99.22.11): 56 data bytes
> > 64 bytes from 207.99.22.11: icmp_seq=0 ttl=64 time=0.128 ms
> > freebsd2# su
> > free_bsd2#
> >
> > If you are having trouble with bind try 'check-names ignore;'
> > zone "_msdcs.icarz.com" {
> >         type master;
> >         file "_msdcs.icarz.com.db";
> >         allow-update { dmcs; 127.0.0.1; };
> >         check-names ignore;
> > };
> >
> > If that is not what you mean please be more specific.
> > Best of luck,  hope this helps.
> > Ken
> >
> > ----- Original Message -----
> > From: "Marius Strom" <marius@marius.org>
> > To: "David J Duchscher" <daved@nostrum.com>
> > Cc: <freebsd-stable@FreeBSD.ORG>
> > Sent: Tuesday, March 25, 2003 10:59 AM
> > Subject: Re: Resolver Issues (non valid hostname characters)
> >
> >
> >> FWIW, I've been having trouble with domains that in particular
have
> > '_'
> >> in the hostname.
> >>
> >> I know it violates RFC952, but lots of people are using them now,
> > for
> >> good or bad.  How about a compile-time flag to allow a "looser"
> >> adherence to the RFC? (Yeah, I know this would likely be gross,
and
> > thus
> >> I'll defer to people who are more familiar with FreeBSD internals
> > here)
> >>
> >> On Mon, 24 Mar 2003, Dave Duchscher wrote:
> >>> It seems that the use of invalid characters in hostnames is
> > cropping
> >>> up more and more.  Besides complaining to the offending site
which
> >>> often doesn't work, I was wondering if these restrictions on
> > FreeBSD
> >>> should be re-examined.  At this time, it seems that many OSes
are
> > no
> >>> longer enforcing this requirement or never have.  In my case, I
am
> >>> running into a hostnames with an underscore character in the
name.
> > It
> >>> seems that Linux, MacOS X, Solaris and Windows all allow this
> > hostname
> >>> to resolve but FreeBSD, as well as the other *BSD, reject it.
> > Should
> >>> FreeBSD follow suit?
> >>>
> >>> DaveD
> >>>
> >>>
> >>> To Unsubscribe: send mail to majordomo@FreeBSD.org
> >>> with "unsubscribe freebsd-stable" in the body of the message
> >>>
> >>
> >> --
> >>
> > /------------------------------------------------->
> >> Marius Strom           | Always carry a short length of
fibre-optic
> > cable.
> >> Professional Geek      | If you get lost, then you can drop it on
> > the
> >> System/Network Admin   | ground, wait 10 minutes, and ask the
> > backhoe
> >> http://www.marius.org/ | operator how to get back to
civilization.
> >>                        \-------------| Alan Frame
> > |---------------------->
> >>
> >> To Unsubscribe: send mail to majordomo@FreeBSD.org
> >> with "unsubscribe freebsd-stable" in the body of the message
> >>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0aa401c2f317$00d32470$e1db7bd1>