Is there a python equivalent to PHP’s Spatie DNS ?
Rather than asking for an equivalent and then expecting us to know what that means, how about you ask for the functionality you need? Python is quite capable of doing TCP and UDP queries, and there are several packages on PyPI that build DNS on top of that.
Apologies for not being clearer.
I wanted something on lines of this without getting into the intricate details of writing lots of code on direct TCP queries.
$dns = new Dns(); $dns->useNameserver('18.104.22.168'); // Google's name servers $records = $dns->getRecords($domain, DNS_MX);
Yep, look on PyPI - there are several that can do that for you.
Thank you - dnspython is my equivalent.