Re: /bin/hostname on Debian
On Aug 23, 5:40 am, Gilles Mocellin <gilles.mocel...@free.fr> wrote:
> Le Friday 22 August 2008 22:23:01 Vwaju, vous avez écrit :
>
> > I am having trouble with my Debian network configuration, and I am
> > trying to isolate the problem. The name of my host is "jupiter" and
> > the name of my domain is "obliqueuniverse.org".
>
> > jupiter:~# echo jupiter.obliqueuniverse.org > /etc/hostname
>
> Within Debian you should not put the FQDN in /etc/hostname.
> The DNS domain will be found by "hostname --fqdn", either in /etc/hosts or by
> a DNS on your IP.
>
> [...]
>
> signature.asc
> < 1KViewDownload
According to man hostname
/bin/hostname -F <filename>
will "read the hostname from the specified file".
If you
/bin/hostname -F <empty file>
and then
/bin/hostname --fqdn
it fails (it's not getting the FQDN from /etc hosts!)
Reply to: