From owner-freebsd-questions Mon Mar 13 21: 4:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 8B4C937B599 for ; Mon, 13 Mar 2000 21:04:51 -0800 (PST) (envelope-from DougB@simplenet.com) Received: from simplenet.com (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id VAA85937; Mon, 13 Mar 2000 21:04:35 -0800 (PST) (envelope-from DougB@simplenet.com) Message-ID: <38CDC863.CCF06A8A@simplenet.com> Date: Mon, 13 Mar 2000 21:04:35 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 4.0-CURRENT-0312a i386) X-Accept-Language: en MIME-Version: 1.0 To: Robert Eckardt Cc: questions@freebsd.org Subject: Re: _ in hostnames References: <200003132158.WAA01750@aranea.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robert Eckardt wrote: > > Hi, > > unfortunately I have lots of hostnames with `_' in them (like "dfsnfs1_0"). > > I tricked named to serve those names (check-name ignore) and nslookup resolves > the correct address. > However programs (like telnet, ping, ...) return "Unknown server error". > I assume this is caused by res_hnok() in /usr/src/contrib/bind/lib/resolv/res_comp.c > (Replacing "_" by "-" is not an option for some thousand hostnames. :-) > > Is there an "official" way to convince the resolver to work with "_" ? Don't perpetuate a kludge. Fix your zones. -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message