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 = []