hostname setting in rc.conf ignored?

John Nielsen lists at jnielsen.net
Thu May 17 17:55:08 UTC 2007


On Thursday 17 May 2007 01:27:52 pm Mike Barborak wrote:
> Hello,
>
> I have a FreeBSD 4.7-RELEASE-p28 server that was initially configured with
> the hostname mydomain.com. I am trying to permanently change that to be
> www.mydomain.com. I have added this line to my /etc/rc.conf file:
>
> hostname="www.mydomain.com"
>
> but after restarting the server it continues to return mydomain.com when i
> run the command hostname. Can anyone tell me what I am doing wrong?

Is there a second hostname entry further down in rc.conf with the original 
value?

JN


More information about the freebsd-questions mailing list