Re: how to change hostname
On Fri, 20 May 2005 10:00:19 +0200, Urs Thuermann wrote: > What is the debain way to change to hostname of a system. Run "hostname NEWHOSTNAME" and put NEWHOSTNAME into /etc/hostname. If occurrences of OLDHOSTNAME appear in /etc/hosts, change them to NEWHOSTNAME. The mailname serves a different purpose from that of hostname but in many cases their values are the same; so you might want to edit /etc/mailname and restart your mail transport agent. Here are the settings for my laptop, named "thanatos". [EMAIL PROTECTED]:~$ hostname thanatos [EMAIL PROTECTED]:~$ cat /etc/hostname thanatos [EMAIL PROTECTED]:~$ cat /etc/mailname localhost [EMAIL PROTECTED]:~$ head -3 /etc/hosts 127.0.0.1 localhost.localdomain localhost 127.0.1.1 thanatos -- Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: how to change hostname
/etc/hostname -Mensaje original- De: Urs Thuermann [mailto:[EMAIL PROTECTED] Enviado el: viernes, 20 de mayo de 2005 13:19 Para: debian-user@lists.debian.org Asunto: Re: how to change hostname Maurits van Rees <[EMAIL PROTECTED]> writes: > I think you just issue the following command as root: > > hostname No. The hostname command only sets the current hostname in the running kernel. I want to change the hostname permanently. urs -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/2005 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how to change hostname
Lee Braiden <[EMAIL PROTECTED]> writes: > I *think* the hostname command will set /etc/hostname for you, as well as > forcing the running system to update its own idea of what the hostname is. It only sets the hostname in the kernel using the hostname(2) syscall. > For /etc/mailname, dpkg-reconfigure exim4-config should do it. > > As for /etc/hosts, I think your options are either to edit it manually, or > use > some dynamic system like DNS. However, base-config *might* help. OK, I will try if base-config does everything I expect it to do. urs -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how to change hostname
Maurits van Rees <[EMAIL PROTECTED]> writes: > I think you just issue the following command as root: > > hostname No. The hostname command only sets the current hostname in the running kernel. I want to change the hostname permanently. urs -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how to change hostname
On Friday 20 May 2005 08:49, Urs Thuermann wrote: > What is the debain way to change to hostname of a system. Only > editing /etc/hostname is not sufficient, because there are other > places where the hostname is stored, e.g. /etc/hosts, /etc/mailname, > etc. I *think* the hostname command will set /etc/hostname for you, as well as forcing the running system to update its own idea of what the hostname is. For /etc/mailname, dpkg-reconfigure exim4-config should do it. As for /etc/hosts, I think your options are either to edit it manually, or use some dynamic system like DNS. However, base-config *might* help. -- Lee. Please send replies to the list, not to my email address. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how to change hostname
On Fri, May 20, 2005 at 09:49:02AM +0200, Urs Thuermann wrote: > What is the debain way to change to hostname of a system. Only > editing /etc/hostname is not sufficient, because there are other > places where the hostname is stored, e.g. /etc/hosts, /etc/mailname, > etc. I think you just issue the following command as root: hostname HTH, -- Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] Public GnuPG key: keyserver.net ID 0x1735C5C2 "Let your advance worrying become advance thinking and planning." - Winston Churchill signature.asc Description: Digital signature