On 22/05/14 13:38, John Hodrien wrote:
On Thu, 22 May 2014, steve wrote:
> /etc/hostname has to contain the fqdn, not the hostname. So now,
> hostname
> is wrong
> but
> hostname -s
> and
> hostname -f
> return correctly.
>
> More importantly, the ddns updates go fine.
> However, I'm sure that'll break something else somewhere else down
> the line.
>
> What is also worrying is that even with a non-updated DNS, we could
> still log in, reach the file server, get tickets etc.
>
> This is only on Ubuntu 14.04. openSUSE works fine with the short
> hostname in /etc/hostname.
> Any comments?
shorthostname in /etc/hosts as the primary is wrong. fqdn should be
first
entry, followed by aliases.
hostname returning fqdn is correct behaviour.
jh
Not on Ubuntu it isn't ;-)
hostname
clientname
hostname -f
clientname.domain.tld
hostname -s
clientname
hostname -d
domain.tld
Rowland