diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 5e1f50be7..946eb5ced 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -253,7 +253,7 @@ HOSTNAME=${UTSNAME} NM_CONTROLLED=no TYPE=Ethernet MTU=${MTU} -DHCP_HOSTNAME=$name +DHCP_HOSTNAME=\`hostname\` EOF # set the hostname diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index 013546ad9..7faa9398a 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -226,6 +226,7 @@ DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes HOSTNAME=${utsname} +DHCP_HOSTNAME=\`hostname\` NM_CONTROLLED=no TYPE=Ethernet MTU=${MTU} diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index 13fad95db..fbd0fd2ea 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -336,7 +336,7 @@ DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes HOSTNAME=$name -DHCP_HOSTNAME=$name +DHCP_HOSTNAME=\`hostname\` NM_CONTROLLED=no TYPE=Ethernet EOF