Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add debug info for NSEC and MF DNS records

  • Loading branch information...
commit 9628c26a5b8d0e1b0d77a1549032262fadb508e6 1 parent 994e578
Emmanuel Blot authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 zeroconf/dns.py
6 zeroconf/dns.py
View
@@ -93,6 +93,7 @@
_TYPE_TXT = 16
_TYPE_AAAA = 28
_TYPE_SRV = 33
+_TYPE_NSEC = 47
_TYPE_ANY = 255
# Mapping constants to names
@@ -122,6 +123,7 @@
_TYPE_TXT : "txt",
_TYPE_AAAA : "quada",
_TYPE_SRV : "srv",
+ _TYPE_NSEC : "nsec",
_TYPE_ANY : "any" }
# utility functions
@@ -492,6 +494,10 @@ def readOthers(self):
rec = DNSHinfo(domain, info[0], info[1], info[2], self.readCharacterString(), self.readCharacterString())
elif info[0] == _TYPE_AAAA:
rec = DNSAddress(domain, info[0], info[1], info[2], self.readString(16))
+ elif info[0] == _TYPE_MF:
+ log.debug("Obsoleted Mail Forwarding (MF) type")
+ elif info[0] == _TYPE_NSEC:
+ log.debug("Ignoring DNSSEC record type")
else:
# Try to ignore types we don't know about
# this may mean the rest of the name is
Please sign in to comment.
Something went wrong with that request. Please try again.