Public bug reported: ==== Bug
The latest release of gce-compute-packages (a.k.a google-compute-engine) drops a config file into /etc/systemd/resolved.conf.d that add a `.local` prefix to the FQDN. ```` ubuntu@jammy-lp:~$ hostname -f jammy-lp.local ```` [Impact] This will likely affect users with scripts calling `hostname` or those who rely on a known FQDN [Mitigation] Editing the `gce-resolved.conf` file to use `Domains=~local` suffices. A one line fix to use is: ``` sudo sed --in-place 's,Domains=local,Domains=~local,g' /etc/systemd/resolved.conf.d/gce-resolved.conf ``` followed by restarting the `systemd-resolved.service`: ``` sudo systemctl restart systemd-resolved.service ``` fixes the issue: ``` ubuntu@jammy-lp:~$ hostname -f jammy-lp.c.ubuntu-kajiya.internal ``` ** Affects: gce-compute-image-packages (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2112595 Title: `Domains=local` is appending `.local` to the FQDN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gce-compute-image-packages/+bug/2112595/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs