Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 15:23:25 -0400
From:      "Mike Barborak" <mab2001@gmail.com>
To:        "Mark Tinguely" <tinguely@casselton.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hostname setting in rc.conf ignored?
Message-ID:  <b6c5c4be0705171223u781453f5wf8b8f99efa4f9651@mail.gmail.com>
In-Reply-To: <200705171856.l4HIu0a8073517@casselton.net>
References:  <b6c5c4be0705171112y207ffee1v5d247ab011e1c238@mail.gmail.com> <200705171856.l4HIu0a8073517@casselton.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <tinguely@casselton.net> 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
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?b6c5c4be0705171223u781453f5wf8b8f99efa4f9651>