DNS API query dns information of particular domain
This api enables a user to query dns information of particular domain. What makes this api unique is the fact that it enables a user to pass.
Query type like ‘A’
Name server to be used for the query like ‘8.8.8,8’
import requests
headers= {"X-Auth-Email":"youremail@something-here-re.com"}
# or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
url="https://api.nmmapper.com/api/v1/dns/?domain=your-domain-here"
res = requests.post(url, data=data)
#
How to add query t ype
import requests
headers= {"X-Auth-Email":"youremail@something-here-re.com"}
# or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
url="https://api.nmmapper.com/api/v1/dns/?domain=your-domain-here&qtype=A"
res = requests.post(url, data=data)
#
Add nameserver
import requests
headers= {"X-Auth-Email":"youremail@something-here-re.com"}
# or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
url="https://api.nmmapper.com/api/v1/dns/?domain=your-domain-here&ns=8.8.8.8"
res = requests.post(url, data=data)
#