Class to add RFC 7871 - Client Subnet in DNS Queries support to dnspython.
pip install clientsubnetoption
Note: If you are installing dnspython on Python3, use pip install dnspython3
- Better default for bitmask values (@DarkDeviL)
- Correctly set scope in
to_wire
(@rgacogne) - CLI Improvements:
- Option to set Recursion Desired flag on the message
- Won't fail completely on nameserver timeout
- Python 3 compatible (tested with 3.4.3 & 2.7.10)
- Can be installed via pip:
pip install clientsubnetoption
- Family is now auto-detected
- IPs must be given as strings (versus their unpacked form)
ClientSubnetOption('192.168.1.1')
vsClientSubnetOption(struct.unpack('!L', socket.inet_aton('192.168.1.1'))[0])