octodns / octodns-bind

RFC compliant (Bind9) provider for octoDNS
MIT License
7 stars 10 forks source link

Resolve AXFR host if DNS name is supplied #22

Closed yzguy closed 1 year ago

yzguy commented 1 year ago

Addresses #18

In our documentation we reference using a DNS name, which actually was not functional and wildly it never came up until recently. dnspython's dns.query.xfr and dns.query.tcp expect an IP address to perform actions against otherwise it will error, it does not handle resolving it on it's own.

This change adds a quick check to see if the host supplied by the user is an IPv4/IPv6 addresses or a DNS name, and if a DNS name is supplied it will resolve it to an IP to be passed off to dns.query.xfr and dns.query.tcp

Probably after #5 and this are merged will cut a new release