Tag: systemd-resolve

How to use LXD container hostnames on the host in Ubuntu 18.04

If you have two LXD containers, mycontainer1 and mycontainer2, then you can reference each other with those handy *.lxd hostnames like this, $ lxc exec mycontainer1 — sudo –user ubuntu –login ubuntu@mycontainer1:~$ ping mycontainer2.lxd PING mycontainer2.lxd(mycontainer2.lxd (fd42:cba6:557e:1a5a:24e:3eff:fce2:8d3)) 56 data bytes 64 bytes from mycontainer2.lxd (fd42:cba6:557e:1a5a:24e:3eff:fce2:8d3): icmp_seq=1 ttl=64 time=0.125 ms ^C — mycontainer2.lxd ping statistics — …

Continue reading

Permanent link to this article: https://blog.simos.info/how-to-use-lxd-container-hostnames-on-the-host-in-ubuntu-18-04/

%d bloggers like this: