Add DNS nameservers to networks
This commit is contained in:
@ -222,7 +222,11 @@ class DNSNetworkInstance(object):
|
||||
(domain_id, network_domain, 'nsX.{d} root.{d} 1 10800 1800 86400 86400'.format(d=self.config['upstream_domain']), 'SOA', 86400, 0)
|
||||
)
|
||||
|
||||
ns_servers = ['pvc-ns.{}'.format(self.config['upstream_domain'])]
|
||||
if self.network.name_servers:
|
||||
ns_servers = self.network.name_servers
|
||||
else:
|
||||
ns_servers = ['pvc-dns.{}'.format(self.config['upstream_domain'])]
|
||||
|
||||
for ns_server in ns_servers:
|
||||
sql_curs.execute(
|
||||
"""
|
||||
|
Reference in New Issue
Block a user