Unable to ping by hostname

Hello,

On my test server on Ubuntu 18.04 and LXD 3.0, after update and reboot, I can’t ping container on host.

Example,
root@xxxxxxxx:~# ping web01.lxd
ping: web01.lxd: Name or service not known

But in any container, it’s work.

What I can do?
Thanks

That’s never supposed to have worked out of the box.

To get .lxd to resolve from the host you need to configure your host’s DNS server to handover requests to that domain to LXD’s own DNS server.

How to do it depends on your DNS resolver, it can be done in dnsmasq, resolved, …