Get DNS Whois
Gets the DNS Whois information for the given domain. Returns the information if successful, otherwise returns an error.
Permissions Required: Whois::DNS
GET
/whois/dns
curl \
-X GET https://thefemdevs.com/api/whois/dns \
-H "x-domain: thefemdevs.com"
Response examples (200)
{
"A": "216.24.57.1",
"MX": [
{
"exchange": "mx1.forwardemail.net",
"priority": 10
},
{
"exchange": "mx2.forwardemail.net",
"priority": 10
}
],
"NS": [
"otto.ns.cloudflare.com",
"maxine.ns.cloudflare.com"
],
"CAA": [
{
"main": true,
"wild": true,
"issuer": "comodoca.com"
},
{
"main": true,
"wild": true,
"issuer": "digicert.com; cansignhttpexchanges=yes"
},
{
"main": true,
"wild": true,
"issuer": "letsencrypt.org"
},
{
"main": true,
"wild": true,
"issuer": "pki.goog; cansignhttpexchanges=yes"
},
{
"iodef": "mailto:admin@thefemdevs.com"
}
],
"PTR": [],
"SOA": {
"retry": 2400,
"expire": 604800,
"minttl": 3600,
"nsname": "maxine.ns.cloudflare.com",
"serial": 2337847618,
"refresh": 10000,
"hostname": "dns.cloudflare.com"
},
"SRV": [],
"TXT": [
"MS=ms65022032",
"forward-email-site-verification=wS0G9jNYte",
"v=spf1 a include:spf.forwardemail.net -all",
"Probely=e85c9999-19d4-4716-9ee7-609f74a9ce3f",
"google-site-verification=XuaaPNYTdBARR5O3md_9vZhFJDR98v66oKNOWVfRIEY"
],
"AAAA": "",
"CNAME": ""
}
Response examples (400)
Missing domain
{
"code": 8,
"message": "Missing Header Parameter(s)"
}
{
"code": 9,
"message": "Invalid Header Parameter(s)"
}
Response examples (401)
Missing API Token
{
"code": 3,
"message": "No API key provided"
}
{
"code": 4,
"message": "Invalid API key provided"
}
Response examples (403)
Missing permissions
{
"code": 1,
"message": "You are not authorized to access this resource"
}
{
"code": 2,
"message": "You are blacklisted from accessing this resource"
}