From: Matthijs Kooijman Date: Wed, 29 Feb 2012 10:54:35 +0000 (+0100) Subject: lxc: Append .local to the container hostnames. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=cfbd7a2ad64fa22ed7061442f327efc90598dfd6;p=matthijs%2Fservers%2Ftika.git lxc: Append .local to the container hostnames. Setting .local in the hostname allows containers to find their own fqdn. Setting the short hostname to a full hostname isn't really how it should be, but there seems to be no way to convince avahi/mdns to resolve the short hostname to the full .local version otherwise. --- diff --git a/var/lib/lxc/ldap/config b/var/lib/lxc/ldap/config index 425c0c0..67f135e 100644 --- a/var/lib/lxc/ldap/config +++ b/var/lib/lxc/ldap/config @@ -1,5 +1,5 @@ # Hostname -lxc.utsname = ldap +lxc.utsname = ldap.local # Use this root filesystem lxc.rootfs = /containers/ldap diff --git a/var/lib/lxc/template/config b/var/lib/lxc/template/config index 0509ae6..35c187d 100644 --- a/var/lib/lxc/template/config +++ b/var/lib/lxc/template/config @@ -1,5 +1,5 @@ # Hostname -lxc.utsname = template +lxc.utsname = template.local # Use this root filesystem lxc.rootfs = /containers/template