LXD: Setup DNS with systemd-resolved and NetworkManager
How to enable DNS for your LXD containers. If your system use systemd and NetworkManager you can follow this example: Assuming you have a network called lxdbr0 with the following configuration: $ lxc network show lxdbr0 config: dns.domain: local.dev ipv4.address: 10.0.0.1/24 ipv4.nat: "true" ipv6.address: fd42:c743:9b8:4f8e::1/64 ipv6.nat: "true" description: "" name: lxdbr0 type: bridge used_by: - /1.0/instances/postgres-01 - /1.0/profiles/default - /1.0/profiles/dev managed: true status: Created locations: - none LXD will start a dnsmasq process listening on 10.