Move default NS record to upstream_domain

This commit is contained in:
Joshua Boniface 2019-12-08 23:05:32 -05:00
parent 2dd6247d7b
commit 9cb5561e77
1 changed files with 2 additions and 2 deletions

View File

@ -219,10 +219,10 @@ class DNSNetworkInstance(object):
INSERT INTO records (domain_id, name, content, type, ttl, prio) VALUES
(%s, %s, %s, %s, %s, %s)
""",
(domain_id, network_domain, 'nsX.{d} root.{d} 1 10800 1800 86400 86400'.format(d=self.config['cluster_domain']), 'SOA', 86400, 0)
(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['cluster_domain'])]
ns_servers = ['pvc-ns.{}'.format(self.config['upstream_domain'])]
for ns_server in ns_servers:
sql_curs.execute(
"""