RE: Machine Hostname



On Sun, 2006-04-30 at 13:44 +0200, Amir Saad wrote:
Thanks Roberto, it worked. I have another question, will that affect on another service that were started before setting the hostname?. I believe that my DHCP sends the hostname but I don't know why it is not set when the machine boots.

Thanks.

I've had the same issue a couple weeks back. The solution is to have no
hostname defined. When this is the case, dhclient will set the hostname
to the one received from dhcp.

You can "delete" your hostname this way: just remove /etc/hostname and
you should be ready to go. Of course, instead of removing you should do
"mv /etc/hostname /etc/hostname.bak" so you can easily restore your
system if something goes wrong.

Good luck

Philippe De Ryck


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Setting up network
    ... While we are on the topic, after the hostname and domain have been ... setup from the initial installation, ... It doesn't matter. ... >> To unsubscribe, send any mail to ...
    (freebsd-questions)
  • Re: Hostname (none) after dist-upgrade
    ... I did a dist-upgrade from sarge to etch on a server and all went well, ... hostname: Unknown host ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: sudoer security problem on server
    ... I replace USER and HOSTNAME with my local values. ... The sudoers man page ... This will allow them to run make as root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to change hostname in FC3
    ... >> How can I make new hostname permanent? ... Thanks Thomas for the help ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • Re: Syntax error in rc.conf - cannot fix
    ... XP recognizes my Samba Server now too. ... > I was changing the hostname of the computer. ... > So, is there any way for me to fix my typo, or is reinstall my only ... To unsubscribe, ...
    (freebsd-questions)