[lxc-users] Resolve .lxc domain with Ubuntu 17.04

Norberto Bensa nbensa+lxcusers at gmail.com
Wed Mar 29 03:16:29 UTC 2017


Hello list!

In previous versions of Ubuntu I had lxc domain name resolution
working, but it's broken for me in 17.04.

Name resolution inside the containers work:

ubuntu at consulta:~⟫ ping fox
PING fox.lxc (10.0.1.114) 56(84) bytes of data.
64 bytes from fox.lxc (10.0.1.114): icmp_seq=1 ttl=64 time=0.058 ms
^C

But it doesn't from the host:

zoolook at melnitz:~$ ping fox.lxc
ping: fox.lxc: Name or service not known


I've added 10.0.1.1 as a nameserver in
/etc/resolvconf/resolv.conf.d/head, but it makes systemd-resolved eat
my cpu at ~100%.

 1268 systemd+  20   0   57672  13292   5136 R  98,9  0,1   0:18.73
/lib/systemd/systemd-resolved
Logs from systemd are useless:

Mar 28 23:41:54 melnitz systemd-resolved[1268]: Processing query...


I need/want to have name resolution working from the host. Does anyone
have a solution?


Thanks!


More information about the lxc-users mailing list