From owner-freebsd-stable Tue Mar 25 10:40:15 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 5F63B37B401 for ; Tue, 25 Mar 2003 10:40:12 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41C6143F75 for ; Tue, 25 Mar 2003 10:40:11 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id h2PIe9dK004916 for ; Tue, 25 Mar 2003 19:40:10 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id h2PIe9EK004915; Tue, 25 Mar 2003 19:40:09 +0100 (CET) Date: Tue, 25 Mar 2003 19:40:09 +0100 (CET) Message-Id: <200303251840.h2PIe9EK004915@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: Re: Resolver Issues (non valid hostname characters) In-Reply-To: <086701c2f2ed$1f7ecd90$e1db7bd1@kenxp> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, hits=-9.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,USER_AGENT 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 Ken Menzel wrote: > 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 Neither the machine's hostname nor /etc/hosts have got anything to do with DNS or BIND. In fact, you can set the machine's hostname to anything you like, including not setting it at all, or setting it to something completely different from the machine's DNS name. It might confuse a few programs or scripts, though. In fact, I was working for some time on a Solaris machine before I noticed that its hostname was "-s" (yes, a dash followed by the letter s). It turned out that a cow-orker had run a configure script of some crappy Linux software a few days before. That configure script used "hostname -s" to find out the hostname, but that particular version of Solaris did not support that option. Instead, it just set the hostname to whatever was given as the first argument. On another pool of machines, /etc/hosts contains MAC addresses. Those wouldn't be legal names in DNS (because of the colons), but they work perfectly fine in /etc/hosts, so you can easily lookup and ping MAC addresses. That has been very handy in that environment. But in DNS, anything except letters, digits and dashes is not allowed (apart from the separating dots, of course). Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "If you do things right, people won't be sure you've done anything at all." -- God in Futurama season 4 episode 8 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message