This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-change-fqdn-domain-name-on-ubuntu-20-04-focal-fossa-linux
I try to obtain Hostname and Domain Name from DHCP in Ubuntu 20.04. Both settings are in the lease (dhclient.lease) as
option host-name “machine”;
option domain-name “example[dot]org”;
Unfortunately I got only the hostname by executing “hostname -f”
Welcome to our forums.
Try setting your hostname in
localhost, and reboot.