Check your host IP address on LXD network interface:
$ lxc network show lxdbr0
config:
ipv4.address: 172.17.233.1/24 # <--- IP address is 172.17.233.1
...
Edit /etc/systemd/resolved.conf.d/lxdbr0.conf
:
[Resolve]
DNS=172.17.233.1 # Replace this with the IP address you obtained in the previous step
Domains=~lxd
- Host: Ubuntu 21.04 (LXD 4.13)
- This method should apply to all systems using systemd-resolved.