Re: Hostname (none) after dist-upgrade



On Tue, 20 Mar 2007, Hans du Plooy wrote:

Hi guys,

I did a dist-upgrade from sarge to etch on a server and all went well,
except for one thing. At console, I now see this:

root@(none):~#hostname
(none)
root@(none):~# hostname -f
hostname: Unknown host

BUT:

root@(none):~# cat /etc/hostname
rimwards.obscured.tld
root@(none):~# cat /etc/hosts
127.0.0.1 localhost
80.xxx.xxx.xxx rimwards.obscured.tld rimwards

Has anyone seen this or know how to fix it? I'm chasing my tail right now.

Thanks
Hans

Hi Hans,

Having it in /etc/hostname should do it, it's actually referenced by /etc/init.d/hostname.sh. So, you might also want to check that it is actually being called at
boot.

you can also set it in /etc/sysctl.conf , add:
kernel.hostname=your.host.name

then, sysctl -p , and you are all set.

hth,
Jeff
---
Human beings were created by water to transport it uphill.



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



Relevant Pages

  • Re: How to change the domainname ????
    ... avahi-deamon {2452]: Server start up complete. ... How to change the domainname ???? ... I have asked to give the hostname debian and the domainname ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Hostname (none) after dist-upgrade
    ... At console, I now see this: ... hostname: Unknown host ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: IP address depending on the MAC
    ... Javier, ... Is there a way to assign a hostname and a static IP address at ... $ cat /etc/init.d/10setnetworkonlyfirstboot ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • AVM B1 not recognized with 2.6.18-4-k7 (etch)
    ... after reinstalling my server from RedHat Fedora Core 6 to Debian 4 ... 00:0c.0 Network controller: AVM Audiovisuelles MKTG & Computer System ... waterman:~# cat /proc/meminfo ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: trying to get tyan s2895 audio working --tyan support does not like debian.....help.
    ... i did an lspci on my server and got this: ... cat /proc/asound/cards ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)