From owner-freebsd-questions@FreeBSD.ORG Thu May 17 19:23:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5AC3616A400 for ; Thu, 17 May 2007 19:23:26 +0000 (UTC) (envelope-from mab2001@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 152F513C457 for ; Thu, 17 May 2007 19:23:25 +0000 (UTC) (envelope-from mab2001@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so158165and for ; Thu, 17 May 2007 12:23:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SYUtlq3XTjGu5qBb+AEIq+dO4iSwzhgg3GNCxDxB/X3WXUP8IQKBUMuiQr61GMKQKcw081DS1cGkbX6p61s3GvYqtoOXmboOqy0FagZCz/CObVZAFgHEwvY0ds+T5aCL5uYcQC5TNxJhOODpqQMYqcPuj8uPRzWcwVe9Ny4MdD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=n5smccRJ5NDdZVDvZ9XTGgLyUlZqo4I/kihbq/ndiazTlzL+v2faEJRr8E+1LqQH3uqry+DSIoqWPT1o2zmE/Q2FbX1c/Z2Hiopp3hbohZqrO6GoGHjLL4PdbasAlOzJswCZYk9075ydpWw1dgO4ebdzSlGjUGJqtTyIuowzuVg= Received: by 10.100.122.8 with SMTP id u8mr581561anc.1179429805143; Thu, 17 May 2007 12:23:25 -0700 (PDT) Received: by 10.100.112.4 with HTTP; Thu, 17 May 2007 12:23:25 -0700 (PDT) Message-ID: Date: Thu, 17 May 2007 15:23:25 -0400 From: "Mike Barborak" To: "Mark Tinguely" In-Reply-To: <200705171856.l4HIu0a8073517@casselton.net> MIME-Version: 1.0 References: <200705171856.l4HIu0a8073517@casselton.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: hostname setting in rc.conf ignored? 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: Thu, 17 May 2007 19:23:26 -0000 Thanks for the suggestions. That's right, I'm not using DHCP. I searched through /etc and /usr/local/etc for calls to hostname and for the string www.mydomain.com and all I found was a call to the command "hostname" in /etc/rc.network and my setting of the hostname variable in /etc/rc.conf. After perusing /etc, apparently rc.network is called by /etc/rc after sourcing rc.conf and this is how the hostname in /etc/rc.conf becomes the hostname of the machine. So that appears to be fine. Perhaps another tack, what is the last script executed during boot up? If I add a line like "/bin/hostname www.mydomain.com" to /etc/rc.local should this force the hostname change? Thanks, Mike On 5/17/07, Mark Tinguely wrote: > > > I understand DHCP setting the hostname, which you are not using. > I understand DNS or /etc/hosts reporting the old name on the network, > but it should not effect hostname. > > I would look for the old name: > > # grep -r mydomain.com /etc > > --Mark Tinguely >