{"library":"nslookup","title":"nslookup","description":"Sensible high-level DNS lookups in Python, using DNSpython resolver. Version 1.8.1 provides an easy-to-use wrapper around dnspython for common DNS queries (A, AAAA, MX, NS, TXT, etc.). It is released under MIT license and maintained on GitHub. Release cadence is low, with occasional updates.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install nslookup"],"cli":null},"imports":["from nslookup import NsLookup"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from nslookup import NsLookup\n\ndomain = \"example.com\"\ndns_query = NsLookup(dns_servers=[\"8.8.8.8\"])\nresp = dns_query.a(domain)\nprint(resp.answer)\n\n# For MX records:\nmx_resp = dns_query.mx(domain)\nprint(mx_resp.answer)","lang":"python","description":"Initialize NsLookup with a list of DNS servers, then call methods like .a() or .mx() to perform lookups. The result object contains .answer, .response_full, etc.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}