diff --git a/dnschef.py b/dnschef.py index c57924d..ce18ca9 100755 --- a/dnschef.py +++ b/dnschef.py @@ -190,7 +190,7 @@ def parse(self, data): response = response.pack() - elif qtype == "*" and not None in list(fake_records.values()): + elif qtype == "*" or qtype == "ANY" and not None in list(fake_records.values()): log.info(f"{self.client_address[0]}: cooking the response of type 'ANY' for {qname} with all known fake records") response = DNSRecord(DNSHeader(id=d.header.id, bitmap=d.header.bitmap,qr=1, aa=1, ra=1), q=d.q)