You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, add option to use custom DNS server address.
I have split horizon DNS with SMTP server in my local infrastructure, thus i get local IP for A/MX records from system resolver and i cannot use this project to verify public IP with own SPF... Using custom DNS server will allow to bypass this restriction.
The text was updated successfully, but these errors were encountered:
By default, pyspf uses dnspython or py[3]dns. Those packages have options for DNS server. For instance, py3dns calls DNS.Base._DiscoverNameServers() which populates global dictionary Base.defaults with lists at 'domain' and 'server'.
The method is platform dependent (e.g. reading /etc/resolv.conf). So for py(3)dns I would do something like:
import DNS
DNS.Base.defaults['server'] = [ '8.8.8.8', '8.8.4.4' ]
The hook in pyspf itself is spf.DNSLookup. By default this is set to spf.DNSLookup_dnspython, or if that can't be imported, to spf.DNSLookup_pydns. You could supply your own DNSLookup.
Please, add option to use custom DNS server address.
I have split horizon DNS with SMTP server in my local infrastructure, thus i get local IP for A/MX records from system resolver and i cannot use this project to verify public IP with own SPF... Using custom DNS server will allow to bypass this restriction.
The text was updated successfully, but these errors were encountered: