projects
/
invirt/packages/invirt-dns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add TXT records in .other pseudo-domain to reveal the other_action value
[invirt/packages/invirt-dns.git]
/
invirt-dns
diff --git
a/invirt-dns
b/invirt-dns
index
7a39f0f
..
2b920bd
100755
(executable)
--- a/
invirt-dns
+++ b/
invirt-dns
@@
-135,6
+135,7
@@
class DatabaseAuthority(common.ResolverBase):
if value:
if other:
ip = value.other_ip
if value:
if other:
ip = value.other_ip
+ action = value.other_action
else:
ip = value.ip
else:
else:
ip = value.ip
else:
@@
-142,6
+143,7
@@
class DatabaseAuthority(common.ResolverBase):
if value:
if other:
ip = value.nics[0].other_ip
if value:
if other:
ip = value.nics[0].other_ip
+ action = value.nics[0].other_action
else:
ip = value.nics[0].ip
else:
else:
ip = value.nics[0].ip
else:
@@
-155,6
+157,10
@@
class DatabaseAuthority(common.ResolverBase):
elif type == dns.SOA:
results.append(dns.RRHeader(domain, dns.SOA, dns.IN,
ttl, self.soa, auth=True))
elif type == dns.SOA:
results.append(dns.RRHeader(domain, dns.SOA, dns.IN,
ttl, self.soa, auth=True))
+ elif other and type == dns.TXT:
+ record = dns.Record_TXT(action if action else '', ttl=ttl)
+ results.append(dns.RRHeader(name, dns.TXT, dns.IN,
+ ttl, record, auth=True))
if len(results) == 0:
authority = []
if len(results) == 0:
authority = []