We are running Ubuntu 18.04 LTS with networking configured by Netplan. The network has a Windows DHCP server and a Windows DNS server.

The Ubuntu 18.04 machine uses this Netplan cfg file to obtain a dynamic IP address:

$ cat /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg
    addresses: []
    dhcp4: true
    version: 2

The hostname and domain name are:

$ hostname
$ dnsdomainname

After reboot the FQDN in DNS is:


which is correct. But the host name stored in DNS sometimes spontaneously changes to the PQDN:


(interrogated by nslookup) and then other systems lose connectivity to the Ubuntu machine.

It is possible that this change happens when the DHCP lease expires, but we are not sure of that.

This problem does not occur with our Ubuntu 16.04 LTS servers (which use NetworkManager).

Is this a known bug, or is our configuration wrong in some way?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.