From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <88c6e77a3e4ca429414a39724d4fc4c3@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] dhcp & metanames In-Reply-To: <200403071349.i27DnZru079594@adat.davidashen.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-jnruljuwvadpbamuylpxgbtzxl" Date: Sun, 7 Mar 2004 08:54:03 -0500 Topicbox-Message-UUID: 1e6b4754-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-jnruljuwvadpbamuylpxgbtzxl Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit It's wrong. Unfortunately, I don't vet the wiki. People put in whatever accidentally worked. I'll go change it. --upas-jnruljuwvadpbamuylpxgbtzxl Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Sun Mar 7 08:51:32 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Sun Mar 7 08:51:29 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id CD90919C28; Sun, 7 Mar 2004 08:51:17 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 08EE219C62; Sun, 7 Mar 2004 08:51:13 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id DB73819B18; Sun, 7 Mar 2004 08:50:41 -0500 (EST) Received: from adat.davidashen.net (unknown [217.113.20.242]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7B26719C80 for <9fans@cse.psu.edu>; Sun, 7 Mar 2004 08:50:34 -0500 (EST) Received: from adat.davidashen.net (localhost.davidashen.net [127.0.0.1]) by adat.davidashen.net (8.12.8p1/8.12.8) with ESMTP id i27DnZiq079595 for <9fans@cse.psu.edu>; Sun, 7 Mar 2004 17:49:35 +0400 (AMT) (envelope-from dvd@adat.davidashen.net) Received: (from dvd@localhost) by adat.davidashen.net (8.12.8p1/8.12.8/Submit) id i27DnZru079594 for 9fans@cse.psu.edu; Sun, 7 Mar 2004 17:49:35 +0400 (AMT) From: David Tolpin Message-Id: <200403071349.i27DnZru079594@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] dhcp & metanames In-Reply-To: <9068264d61698be89ea612b62212f186@plan9.bell-labs.com> Content-Type: text/plain; charset=KOI8-R Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Sun, 7 Mar 2004 17:49:35 +0400 (AMT) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on psuvax1.cse.psu.edu X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Level: > We ask dhcp for a hostname and a domain. For the latter, dhcp's > seem to differ in what they give back, i.e., the FQDN of the machine, > the FQDN domain name that the machine is in, or that FQDN starting > with a '.'. Ipconfig tries to deal with the situation, clearly > not well enough. I'll try to do better but, if the server doesn't > return the hostname, its hard to guess. the dom=.davidashen.net > clearly indicates that we only got the domain and not the hostname. > This is a effect of the spread of windows where the hostname is > always in local storage and diskless boot is not really considered. I have no Windows server in my network; the dhcp server sends domain names. I have only done that (the leading dot) because http://www.cs.bell-labs.com/wiki/plan9/Mail_configuration/ in the last paragraph says: This name is generated from either the site enviroment var, or if that is not set, by appending the sending machines domain to its system name. The domain is picked up from the dom= attribute from /lib/ndb/local. The dom= attribut should be of the form dom=.machine.com (NB: leading dot). If it is wrong, I'll change it to the fqdn. --upas-jnruljuwvadpbamuylpxgbtzxl--