mirror of https://github.com/apache/cloudstack.git
Fix DNS resolver issue
This commit is contained in:
parent
fe81ae0af3
commit
b09c11f447
|
|
@ -113,7 +113,8 @@ class CsDhcp(CsDataBag):
|
|||
if (self.config.is_vpc() or self.config.is_router()) and ('is_vr_guest_gateway' in gn.data and gn.data['is_vr_guest_gateway']):
|
||||
if gateway in dns_list:
|
||||
dns_list.remove(gateway)
|
||||
dns_list.insert(0, ip)
|
||||
if gn.data['router_guest_ip'] != ip:
|
||||
dns_list.insert(0, ip)
|
||||
elif self.config.is_dhcp() and not self.config.use_extdns():
|
||||
guest_ip = self.config.address().get_guest_ip()
|
||||
if guest_ip and guest_ip in dns_list and ip not in dns_list:
|
||||
|
|
|
|||
Loading…
Reference in New Issue