I've been looking into this further and I think I've misunderstood how this should work.<br><br>For some reason I thought that with the default lxcbr0 config the containers name would resolve for it as a DNS name. That doesn't seem to be the case.<br>

<br>I've tried the ubuntu template and also sshd (on Ubuntu 12.04). Following <a href="https://help.ubuntu.com/12.04/serverguide/lxc.html">https://help.ubuntu.com/12.04/serverguide/lxc.html</a>, I did the following:<br>

<br><div style="margin-left:40px">sudo lxc-create -t sshd -n ssh1<br>ssh-keygen -f id<br>sudo mkdir /var/lib/lxc/ssh1/rootfs/root/.ssh<br>sudo cp id.pub /var/lib/lxc/ssh1/rootfs/root/.ssh/authorized_keys<br>sudo lxc-start -n ssh1 -d<br>

ssh -i id root@ssh1.<br></div><br>This doesn't work. "ssh1." doesn't resolve to the container's address.<br><br>Any clues what I might be doing wrong?<br><br>I could actually live perfectly happily with the IP address. But I can't see any way to recover the IP address for a container that you've just created other than greping syslog for dnsmasq logs (or accessing it via the console, but I'm using LXC programatically).<br>

<br>Thanks<br>-Ben<br><br>