From owner-freebsd-questions@FreeBSD.ORG Wed May 7 10:50:25 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1382106568C for ; Wed, 7 May 2008 10:50:25 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) Received: from ppsw-0.csi.cam.ac.uk (ppsw-0.csi.cam.ac.uk [131.111.8.130]) by mx1.freebsd.org (Postfix) with ESMTP id 80D718FC93 for ; Wed, 7 May 2008 10:50:25 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from gw.cjkey.org.uk ([88.97.163.222]:4630 helo=[192.168.2.186]) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:465) with esmtpsa (PLAIN:cjk32) (TLSv1:DHE-RSA-AES256-SHA:256) id 1JthE4-0006Ud-0u (Exim 4.67) for questions@freebsd.org (return-path ); Wed, 07 May 2008 11:50:20 +0100 Message-ID: <4821896B.60005@cam.ac.uk> Date: Wed, 07 May 2008 11:50:19 +0100 From: Christopher Key User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Underscores in host names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 10:50:25 -0000 Hello, I've a host on the network called "GC100_000C1E00AC3F_GlobalCache", and I'm getting interesting behaviour when I try to do DNS lookups on it. Under FreeBSD, ping fails with 'Unknown server error'(distinct from the standard 'Unknown host'), and nslookup succeeds. OSX and Windows machines will do a DNS lookup on it quite happily The best explanation I can manage is that ping etc. are using different code from nslookup, and only nslookup is allowing the underscores within the hostname. Is this behaviour by design? My understanding is that underscores are not strictly permitted, but that most implementations choose to allow them unless there's a specific reason not to. Regards, Chris