Hostname funniness

Lorenzo E. Danielsson lorenzo at aponkye.com
Wed Nov 17 06:49:28 CST 2004


Hi,

I'm sure there's a good explanation to this and that I have done
something very wrong. I'm sure it's been asked and answered before, on
lists more suited for this type of questions. But to my defense I did
google.. ;-)

Why is it that I get the following on my three systems:

FreeBSD:
% hostname
my.hostname.net
% hostname -s
my

Gentoo:
% hostname
my.hostname.net
% hostname -s
my

Ubuntu (Hoary):
% hostname
my.hostname.net
% hostname -s
localhost

Can somebody tell me where I went wrong? I'm running hostname from zsh
on all three systems. I haven't begun damaging files in /etc/ yet
either. I have pretty much a normal Warty install with a (partial) Hoary
upgrade.

++Lorenzo;




More information about the ubuntu-devel mailing list