Hi I am seeing this issue `search DOMAINS` on Ubuntu jammy arm64 in the following environment. ``` $ cat /etc/os-release | grep ^VERSION VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy $ uname -m aarch64 $ dpkg -S /etc/network/if-up.d/resolved ifupdown: /etc/network/if-up.d/resolved $ dpkg -s ifupdown | grep ^Version Version: 0.8.36+nmu1ubuntu3 ``` I saw the "search DOMAINS" in the /etc/resolv.conf. ``` $ cat /etc/resolv.conf | grep -v ^# nameserver NNN.NNN.NNN.NNN (masked by myself) options edns0 trust-ad search DOMAINS ``` Then I tried the workaround script mentioned at https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1978351/comments/5 . ``` $ cat /etc/network/if-up.d/zzz-fix-domains #!/bin/sh statedir=/run/systemd/resolve/netif grep -rl DOMAINS $statedir | xargs -r perl -pi -e 's/DOMAINS=DOMAINS//' systemctl try-restart systemd-resolved || true ``` ``` $ sudo chmod +x /etc/network/if-up.d/zzz-fix-domains ``` After running the `zzz-fix-domains`, the `search DOMAINS` was replaced with `search .`. ``` $ sudo /etc/network/if-up.d/zzz-fix-domains $ grep -v ^# /etc/resolv.conf nameserver NNN.NNN.NNN.NNN (masked by myself) options edns0 trust-ad search . ``` However, when rebooting OS, the `systemd-resolved` failed to start with booting. ``` ... [ OK ] Found device /sys/subsystem/net/devices/bond0. [ OK ] Started ifup for bond0.