1
1
I have carried out the expected configuration and had this functionality working in the past. The changes I made that had this working previously were:
- Uncommenting the LXC_DOMAIN="lxc" line in /etc/default/lxc-net
- Added the server=/lxc/10.0.3.1 line to /etc/NetworkManager/dnsmasq.d/lxc.conf
I've additionally added the IP for the dnsmasq instance to the resolv.conf on my host machine.
Previously, this allowed me to ping my containers using the suffix .lxc on the container name (e.g test-container.lxc) or just using the container name itself.
Now I can still ping my containers just using the container name, but the .lxc domain version of addressing my containers seems to have stopped working and I have no idea why.
I also tried adding the server=/lxc/10.0.3.1 line to /etc/dnsmasq.d/lxc as I'd read elsewhere that someone had it working using that approach, but no luck for me.
All I get when I try to ping test-container.lxc is the error:
ping: unknown host test-container.lxc
Anyone else seen this issue and know why this behaviour has changed or what I can do to get this functionality working again?