mirror of https://github.com/apache/cloudstack.git
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
This commit is contained in:
parent
eb33345f2e
commit
88f3d04eb2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue