From ad8308debdb3e62190aa9074087ead1c80e2319f Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Thu, 17 May 2018 21:27:30 -0400 Subject: [PATCH] Include TXT records in ANY queries --- invirt-dns | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invirt-dns b/invirt-dns index 2b920bd..b540ff7 100755 --- a/invirt-dns +++ b/invirt-dns @@ -154,13 +154,13 @@ class DatabaseAuthority(common.ResolverBase): record = dns.Record_A(ip, ttl) results.append(dns.RRHeader(name, dns.A, dns.IN, ttl, record, 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: + if other and type in (dns.TXT, dns.ALL_RECORDS): record = dns.Record_TXT(action if action else '', ttl=ttl) results.append(dns.RRHeader(name, dns.TXT, dns.IN, ttl, record, auth=True)) + if type == dns.SOA: + results.append(dns.RRHeader(domain, dns.SOA, dns.IN, + ttl, self.soa, auth=True)) if len(results) == 0: authority = [] -- 1.7.9.5