From owner-freebsd-stable Tue Mar 25 13:36:38 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3548637B401 for ; Tue, 25 Mar 2003 13:36:34 -0800 (PST) Received: from hercules.icarz.com (ns1.icarz.com [207.99.22.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 370A743FCB for ; Tue, 25 Mar 2003 13:36:33 -0800 (PST) (envelope-from kenm@icarz.com) Received: from kenxp (netb-225.icarz.com [209.123.219.225] (may be forged)) by hercules.icarz.com (8.11.6/8.10.1) with SMTP id h2PLaK828856; Tue, 25 Mar 2003 16:36:20 -0500 (EST) Message-ID: <0aa401c2f317$00d32470$e1db7bd1@kenxp> From: "Ken Menzel" To: "David J Duchscher" Cc: "Marius Strom" , References: Subject: Re: Resolver Issues (non valid hostname characters) Date: Tue, 25 Mar 2003 16:39:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-12.9 required=5.0 tests=ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" To: "Ken Menzel" Cc: "Marius Strom" ; 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" > > To: "David J Duchscher" > > Cc: > > 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