<div dir="ltr">I had trouble resolving container hostnames too.  This seems to work: add nameserver 10.0.3.1 to the host's appropriate resolvconf file, and then remove nameserver 127.0.0.1 from the container's appropriate resolvconf file.<div>
<br></div><div>You can see a writeup here: <a href="http://askubuntu.com/questions/490445/how-to-add-lxc-containers-to-hosts-dns-so-that-getaddrinfo-can-resolve-them">http://askubuntu.com/questions/490445/how-to-add-lxc-containers-to-hosts-dns-so-that-getaddrinfo-can-resolve-them</a></div>
<div><br></div><div>Bill</div></div>