From cfbd7a2ad64fa22ed7061442f327efc90598dfd6 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Feb 2012 11:54:35 +0100 Subject: [PATCH] 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. --- var/lib/lxc/ldap/config | 2 +- var/lib/lxc/template/config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2