From 88f3d04eb276ec658483b9567516de1018434b91 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 15 Feb 2011 16:29:40 -0500 Subject: [PATCH] fix dns issue that in direct network mode, user vm can not get domr ip as dns server, then user vm can resolve its hostname, the consequence is that "starting sendmail" is tooo slow --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 2cee23e0e82..cdeac3fdfc4 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -291,7 +291,7 @@ setup_dhcpsrvr() { echo "dhcp-option=option:router,$GW" >> /etc/dnsmasq.conf #for now set up ourself as the dns server as well sed -i -e "/^[#]*dhcp-option=6.*$/d" /etc/dnsmasq.conf - echo "dhcp-option=6,$NS1,$NS2" >> /etc/dnsmasq.conf + echo "dhcp-option=6,$ETH0_IP,$NS1,$NS2" >> /etc/dnsmasq.conf else sed -i -e "/^[#]*dhcp-option=option:router.*$/d" /etc/dnsmasq.conf echo "dhcp-option=option:router" >> /etc/dnsmasq.conf