From owner-freebsd-questions@FreeBSD.ORG Sat May 20 16:33:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C80516A41F for ; Sat, 20 May 2006 16:33:30 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCEE343D46 for ; Sat, 20 May 2006 16:33:29 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 289375D0D; Sat, 20 May 2006 12:33:27 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id agBHpLFomjER; Sat, 20 May 2006 12:33:25 -0400 (EDT) Received: from [192.168.1.251] (pool-68-160-242-211.ny325.east.verizon.net [68.160.242.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id C62F85E9B; Sat, 20 May 2006 12:33:24 -0400 (EDT) Message-ID: <446F44D1.6040104@mac.com> Date: Sat, 20 May 2006 12:33:21 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Steve Kargl References: <20060519224819.GA48412@troutmask.apl.washington.edu> <6.0.0.22.2.20060519175424.02689218@mail.computinginnovations.com> <20060520160842.GA53996@troutmask.apl.washington.edu> In-Reply-To: <20060520160842.GA53996@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Setting up NIS questions? 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: Sat, 20 May 2006 16:33:30 -0000 Steve Kargl wrote: > I can't even get NIS set up with ypinit. It unconditionally > uses /bin/hostname, which will grab the FQDN of the system. > You have given me an idea. I can change rc.conf to set hostname > to the name I've given 192.168.0.10, put that on bge0, put > the IP address associated with the FQDN on bge1, and reboot. > This might permit NIS to come up. Though this seems like a hack, > because when someone connects to the seem via the FQDN, > /bin/hostname will give the wrong answer. Associating the ypdomain with the FQDN from the DNS is convenient, and a convention that many follow, but it is not required, by any means. The O'Reilly "Managing NIS and NFS" book is a fine reference on this sort of thing, BTW, and is probably available online in PDF form if you look. Nevertheless, YP/NIS predates many of the more convoluted network designs that people set up nowadays, and was intended for machines which have a single identity even if they have multiple NICs-- Sun used to assign the same MAC address to all NICs on one machine, to ensure that people respected collision domains. It is not normally desirable to set up a YP/NIS master server on a machine which is multihomed in the sense of doing NAT or needing a firewall to separate internal from external, and obvious a firewall machine running zero or the minimal necessary services is a lot more secure.... -- -Chuck