Nicer layout
This commit is contained in:
parent
f172574d3a
commit
d2e9433322
|
@ -286,7 +286,9 @@ class AXFRDaemonInstance(object):
|
||||||
else:
|
else:
|
||||||
dnsmasq_ip = network.ip6_gateway
|
dnsmasq_ip = network.ip6_gateway
|
||||||
|
|
||||||
|
#
|
||||||
# Get an AXFR from the dnsmasq instance and list of records
|
# Get an AXFR from the dnsmasq instance and list of records
|
||||||
|
#
|
||||||
try:
|
try:
|
||||||
axfr = dns.query.xfr(dnsmasq_ip, domain, lifetime=5.0)
|
axfr = dns.query.xfr(dnsmasq_ip, domain, lifetime=5.0)
|
||||||
z = dns.zone.from_xfr(axfr)
|
z = dns.zone.from_xfr(axfr)
|
||||||
|
@ -312,7 +314,9 @@ class AXFRDaemonInstance(object):
|
||||||
entry = '{} {} IN {} {}'.format(name, record[1], record[3], ' '.join(record[4:]))
|
entry = '{} {} IN {} {}'.format(name, record[1], record[3], ' '.join(record[4:]))
|
||||||
records_new.append(entry)
|
records_new.append(entry)
|
||||||
|
|
||||||
|
#
|
||||||
# Get the current zone from the database
|
# Get the current zone from the database
|
||||||
|
#
|
||||||
mysql_curs = self.mysql_conn.cursor()
|
mysql_curs = self.mysql_conn.cursor()
|
||||||
mysql_curs.execute(
|
mysql_curs.execute(
|
||||||
'SELECT id FROM domains WHERE name=%s',
|
'SELECT id FROM domains WHERE name=%s',
|
||||||
|
|
Loading…
Reference in New Issue