The DNS Info API let’s you easily integrate the DNS tools in your own app. The API has 10 unique endpoints, that each returns detailed information about everything from ordinary DNS lookups to IP location and SSL analyzes.
The API is REST-based. Requests are via the POST method, and the data is returned as a JSON object, to give the most flexible output.
For each endpoint, there will be a PHP cURL example, and an example of the JSON output returned. If any questions are left unanswered, please don’t hesitate to contact me.
API Access & Authentication
If you signed up, you will automatically get a “Client ID” and an “Access Token”. Both are required in the API requests, and can be found in the API section of your profile.
Your Access Token is personal, and should not be shared with anyone under any circumstances. Remember you can always reset your Access Token in your profile, taking effect immediately.
If your Access Token is invalid, the authentication will fail and you will get the following response:
{
"Status": 401,
"Message": "Authorization Failed"
}
Lookup Frequency
To make sure the API isn’t abused, there is a max frequency of 1 request per second. If this limit is reached, you will get the following error message:
{ "Status": 429, "Message": "Too Many Requests" }
API Response Codes
Code | What does it mean? |
---|---|
200 | Successful Request |
202 | Invalid Input - You should sanitize input before requesting |
400 | Bad Request / Syntax Error |
401 | Authorization Failed - Invalid Client ID or Access Token |
402 | No Credit Available |
429 | Too Many Requests - Slow down |
The REST-base for all requests is https://www.dnsinfo.dk/wp-json/dns/v1.0/
DNS API information
This endpoint gives a basic information about available endpoints. No credit is used for this request, so it can be made without having to buy credit.
POST /info/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/info/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"Version": "1.0",
"LatestVersion": "1.0",
"InitialRelease": "2020-09-26 09:17",
"LastUpdate": "2020-09-26 09:17",
"AvailableRoutes": [
{
"Route": "/me/",
"Method": "POST",
"Description": "Basic account information",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/me/"
},
{
"Route": "/lookup/",
"Method": "POST",
"Description": "Default DNS lookup",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/lookup/"
},
{
"Route": "/whois/",
"Method": "POST",
"Description": "Whois information",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/whois/"
},
{
"Route": "/o365/",
"Method": "POST",
"Description": "Office 365 lookup",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/o365/"
},
{
"Route": "/spf/",
"Method": "POST",
"Description": "SPF lookup",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/spf/"
},
{
"Route": "/ssl/",
"Method": "POST",
"Description": "Certificate lookup",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/ssl/"
},
{
"Route": "/blacklist/",
"Method": "POST",
"Description": "Blacklist check",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/blacklist/"
},
{
"Route": "/ns/",
"Method": "POST",
"Description": "Navneserver status opslag",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/ns/"
},
{
"Route": "/geo/",
"Method": "POST",
"Description": "IP location information",
"Url": "https://www.dnsinfo.dk/wp-json/dns/v1.0/geo/"
}
]
}
DNS API User Information
This endpoint returns short practical information about your account. No credit is used for this request, so it can be made without having to buy credit.
POST /me/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/me/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"ClientID": "a7619bd44f333f1ca8e1b8360e804781",
"APICreditRemaining": 848
}
DNS API Lookup
This endpoint is for regular DNS lookup, as you know it from the website. It returns all the available records ordered in a structered format.
POST /lookup/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/lookup/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"IDN": "dnsinfo.dk",
"Unicode": "dnsinfo.dk",
"Records": {
"SOA": [
{
"nameserver": "ns-cloud-d1.googledomains.com",
"email": "[email protected]",
"serial": 1,
"refresh": 21600,
"retry": 3600,
"expire": 259200,
"minimum-ttl": 300
}
],
"A": [
{
"source": "dnsinfo.dk",
"target": "116.202.245.110",
"ttl": 3600
},
{
"source": "www.dnsinfo.dk",
"target": "116.202.245.110",
"ttl": 3600
}
],
"TXT": [
{
"source": "dnsinfo.dk",
"target": "v=spf1 a mx ip4:116.202.245.110 include:spf.azehosting.net include:eu.mailgun.org",
"ttl": 3600
}
],
"NS": [
{
"source": "dnsinfo.dk",
"target": "ns-cloud-d3.googledomains.com",
"ttl": 21600
},
{
"source": "dnsinfo.dk",
"target": "ns-cloud-d1.googledomains.com",
"ttl": 21600
},
{
"source": "dnsinfo.dk",
"target": "ns-cloud-d4.googledomains.com",
"ttl": 21600
},
{
"source": "dnsinfo.dk",
"target": "ns-cloud-d2.googledomains.com",
"ttl": 21600
}
]
}
}
DNS API Whois Lookup
This endpoint returns information about the owner of the domain or the server (IP address).
POST /whois/
Request Example (domain):
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/whois/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"WhoisServer": "whois.dk-hostmaster.dk",
"Availability": "Available",
"Result": "Domain: dnsinfo.dk\nDNS: dnsinfo.dk\nRegistered: 2018-12-02\nExpires: 2020-12-31\nRegistration period: 1 year\nVID: no\nDNSSEC: Unsigned delegation, no records\nStatus: Active\n\nRegistrant\nHandle: ***N/A***\nName: Daniel Svarrer Nielsen\nAddress: Stationsvej 32 E\nPostalcode: 4293\nCity: Dianalund\nCountry: DK\n\nNameservers\nHostname: ns-cloud-d1.googledomains.com\nHostname: ns-cloud-d2.googledomains.com\nHostname: ns-cloud-d3.googledomains.com\nHostname: ns-cloud-d4.googledomains.com"
}
Request Example (IP address):
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => '116.202.245.110',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/whois/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"Results": [
{
"WhoisServer": "whois.lacnic.net",
"Result": "inetnum: 116.202.0.0 - 116.203.255.255\nnetname: STUB-116-202SLASH15\ndescr: Transferred to the RIPE region on 2018-08-27T14:42:34Z.\ncountry: ZZ\nadmin-c: STUB-AP\ntech-c: STUB-AP\nstatus: ALLOCATED PORTABLE\nmnt-by: APNIC-STUB\nmnt-irt: IRT-STUB-AP\nlast-modified: 2019-09-30T00:15:24Z\nsource: APNIC\n\nirt: IRT-STUB-AP\naddress: N/A\ne-mail: [email protected]\nabuse-mailbox: [email protected]\nadmin-c: STUB-AP\ntech-c: STUB-AP\nremarks: IRT for stub records.\nremarks: We do not operate the referring network and\nremarks: are unable to investigate complaints of network abuse.\nremarks: For information about IRT, see www.apnic.net/irt\nmnt-by: APNIC-HM\nauth: # Filtered\nlast-modified: 2019-09-23T05:22:43Z\nsource: APNIC\n\nperson: STUB PERSON\naddress: N/A\ncountry: ZZ\nphone: +00 0000 0000\ne-mail: [email protected]\nnic-hdl: STUB-AP\nremarks: No contact information for stub records.\nmnt-by: APNIC-HM\nlast-modified: 2019-09-23T04:53:33Z\nsource: APNIC"
},
{
"WhoisServer": "whois.apnic.net",
"Result": "inetnum: 116.202.0.0 - 116.203.255.255\nnetname: STUB-116-202SLASH15\ndescr: Transferred to the RIPE region on 2018-08-27T14:42:34Z.\ncountry: ZZ\nadmin-c: STUB-AP\ntech-c: STUB-AP\nstatus: ALLOCATED PORTABLE\nmnt-by: APNIC-STUB\nmnt-irt: IRT-STUB-AP\nlast-modified: 2019-09-30T00:15:24Z\nsource: APNIC\n\nirt: IRT-STUB-AP\naddress: N/A\ne-mail: [email protected]\nabuse-mailbox: [email protected]\nadmin-c: STUB-AP\ntech-c: STUB-AP\nremarks: IRT for stub records.\nremarks: We do not operate the referring network and\nremarks: are unable to investigate complaints of network abuse.\nremarks: For information about IRT, see www.apnic.net/irt\nmnt-by: APNIC-HM\nauth: # Filtered\nlast-modified: 2019-09-23T05:22:43Z\nsource: APNIC\n\nperson: STUB PERSON\naddress: N/A\ncountry: ZZ\nphone: +00 0000 0000\ne-mail: [email protected]\nnic-hdl: STUB-AP\nremarks: No contact information for stub records.\nmnt-by: APNIC-HM\nlast-modified: 2019-09-23T04:53:33Z\nsource: APNIC"
},
{
"WhoisServer": "whois.arin.net",
"Result": "NetRange: 116.0.0.0 - 116.255.255.255\nCIDR: 116.0.0.0/8\nNetName: APNIC-116\nNetHandle: NET-116-0-0-0-1\nParent: ()\nNetType: Allocated to APNIC\nOriginAS:\nOrganization: Asia Pacific Network Information Centre (APNIC)\nRegDate: 2007-01-17\nUpdated: 2010-07-30\nComment: This IP address range is not registered in the ARIN database.\nComment: For details, refer to the APNIC Whois Database via\nComment: WHOIS.APNIC.NET or http://wq.apnic.net/apnic-bin/whois.pl\nComment: ** IMPORTANT NOTE: APNIC is the Regional Internet Registry\nComment: for the Asia Pacific region. APNIC does not operate networks\nComment: using this IP address range and is not able to investigate\nComment: spam or abuse reports relating to these addresses. For more\nComment: help, refer to http://www.apnic.net/apnic-info/whois_search2/abuse-and-spamming\nRef: https://rdap.arin.net/registry/ip/116.0.0.0\n\nResourceLink: http://wq.apnic.net/whois-search/static/search.html\nResourceLink: whois.apnic.net\n\n\nOrgName: Asia Pacific Network Information Centre\nOrgId: APNIC\nAddress: PO Box 3646\nCity: South Brisbane\nStateProv: QLD\nPostalCode: 4101\nCountry: AU\nRegDate:\nUpdated: 2012-01-24\nRef: https://rdap.arin.net/registry/entity/APNIC\n\nReferralServer: whois://whois.apnic.net\nResourceLink: http://wq.apnic.net/whois-search/static/search.html\n\nOrgAbuseHandle: AWC12-ARIN\nOrgAbuseName: APNIC Whois Contact\nOrgAbusePhone: +61 7 3858 3188\nOrgAbuseEmail: [email protected]\nOrgAbuseRef: https://rdap.arin.net/registry/entity/AWC12-ARIN\n\nOrgTechHandle: AWC12-ARIN\nOrgTechName: APNIC Whois Contact\nOrgTechPhone: +61 7 3858 3188\nOrgTechEmail: [email protected]\nOrgTechRef: https://rdap.arin.net/registry/entity/AWC12-ARIN"
},
{
"WhoisServer": "whois.ripe.net",
"Result": "inetnum: 116.202.0.0 - 116.203.255.255\nnetname: DE-HETZNER-2010117\ncountry: DE\norg: ORG-HOA1-RIPE\nadmin-c: HOAC1-RIPE\ntech-c: HOAC1-RIPE\nstatus: ALLOCATED PA\nmnt-by: RIPE-NCC-HM-MNT\nmnt-by: HOS-GUN\nmnt-lower: HOS-GUN\nmnt-domains: HOS-GUN\nmnt-routes: HOS-GUN\ncreated: 2018-08-27T15:05:26Z\nlast-modified: 2018-08-27T15:05:26Z\nsource: RIPE # Filtered\n\norganisation: ORG-HOA1-RIPE\norg-name: Hetzner Online GmbH\norg-type: LIR\naddress: Industriestrasse 25\naddress: D-91710\naddress: Gunzenhausen\naddress: GERMANY\nphone: +49 9831 5050\nfax-no: +49 9831 5053\nadmin-c: TF2013-RIPE\nadmin-c: MF1400-RIPE\nadmin-c: GM834-RIPE\nadmin-c: HOAC1-RIPE\nadmin-c: MH375-RIPE\nadmin-c: SK2374-RIPE\nadmin-c: SK8441-RIPE\nabuse-c: HOAC1-RIPE\nmnt-ref: RIPE-NCC-HM-MNT\nmnt-ref: HOS-GUN\nmnt-by: RIPE-NCC-HM-MNT\nmnt-by: HOS-GUN\ncreated: 2004-04-17T11:07:58Z\nlast-modified: 2016-08-25T13:26:09Z\nsource: RIPE # Filtered\n\nrole: Hetzner Online GmbH - Contact Role\naddress: Hetzner Online GmbH\naddress: Industriestrasse 25\naddress: D-91710 Gunzenhausen\naddress: Germany\nphone: +49 9831 505-0\nfax-no: +49 9831 505-3\nabuse-mailbox: [email protected]\nremarks: *************************************************\nremarks: * For spam/abuse/security issues please contact *\nremarks: * [email protected], or fill out the form at *\nremarks: * abuse.hetzner.com, thank you. *\nremarks: *************************************************\nremarks:\nremarks: *************************************************\nremarks: * Any questions on Peering please send to *\nremarks: * [email protected] *\nremarks: *************************************************\norg: ORG-HOA1-RIPE\nadmin-c: MH375-RIPE\ntech-c: GM834-RIPE\ntech-c: SK2374-RIPE\ntech-c: TF2013-RIPE\ntech-c: MF1400-RIPE\ntech-c: SK8441-RIPE\nnic-hdl: HOAC1-RIPE\nmnt-by: HOS-GUN\ncreated: 2004-08-12T09:40:20Z\nlast-modified: 2020-09-25T12:21:56Z\nsource: RIPE # Filtered\n\n\nroute: 116.202.0.0/16\ndescr: HETZNER-DC\norigin: AS24940\norg: ORG-HOA1-RIPE\nmnt-by: HOS-GUN\ncreated: 2018-11-06T10:23:41Z\nlast-modified: 2018-11-06T10:23:41Z\nsource: RIPE\n\norganisation: ORG-HOA1-RIPE\norg-name: Hetzner Online GmbH\norg-type: LIR\naddress: Industriestrasse 25\naddress: D-91710\naddress: Gunzenhausen\naddress: GERMANY\nphone: +49 9831 5050\nfax-no: +49 9831 5053\nadmin-c: TF2013-RIPE\nadmin-c: MF1400-RIPE\nadmin-c: GM834-RIPE\nadmin-c: HOAC1-RIPE\nadmin-c: MH375-RIPE\nadmin-c: SK2374-RIPE\nadmin-c: SK8441-RIPE\nabuse-c: HOAC1-RIPE\nmnt-ref: RIPE-NCC-HM-MNT\nmnt-ref: HOS-GUN\nmnt-by: RIPE-NCC-HM-MNT\nmnt-by: HOS-GUN\ncreated: 2004-04-17T11:07:58Z\nlast-modified: 2016-08-25T13:26:09Z\nsource: RIPE # Filtered"
}
]
}
DNS API Office 365 Lookup
This endpoint return all records related to Office 365. It can prove very useful for automating DNS creation or nameserver change, if you want to make sure nothing gets lost.
POST /o365/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'microsoft.com',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/o365/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"Records": {
"A": [
{
"source": "sip.microsoft.com",
"target": "157.58.210.1",
"ttl": 787
}
],
"CNAME": [
{
"source": "autodiscover.microsoft.com",
"target": "autodiscover.outlook.com",
"ttl": 2502
},
{
"source": "lyncdiscover.microsoft.com",
"target": "sb243.sbweb.microsoft.com",
"ttl": 786
},
{
"source": "enterpriseregistration.microsoft.com",
"target": "enterpriseregistration.windows.net",
"ttl": 2503
},
{
"source": "enterpriseenrollment.microsoft.com",
"target": "enterpriseenrollment-s.manage-beta.microsoft.com",
"ttl": 2504
}
],
"MX": [
{
"source": "microsoft.com",
"target": "microsoft-com.mail.protection.outlook.com",
"priority": 10,
"ttl": 1388
}
],
"TXT": {
"1": {
"source": "microsoft.com",
"target": "v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com include:_spf1-meo.microsoft.com -all",
"ttl": 1164
}
},
"SRV": [
{
"source": "_sip._tls.microsoft.com",
"target": "sip.microsoft.com",
"priority": 0,
"weight": 0,
"port": 443,
"ttl": 2503
},
{
"source": "_sipfederationtls._tcp.microsoft.com",
"target": "sipfed.microsoft.com",
"priority": 0,
"weight": 0,
"port": 5061,
"ttl": 2504
}
]
}
}
DNS API SPF Lookup
This endpoint is for making advanced SPF analyzes. It gives you a complete breakdown of all requests and includes in the SPF.
POST /spf/
Opslag eksempel:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/spf/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (Success – JSON):
{
"Status": 200,
"Data": [
{
"Snippet": "v=spf1",
"Qualifier": "",
"Type": "Version",
"Value": 1
},
{
"Snippet": "a",
"Qualifier": [
"+",
"Pass"
],
"Type": "A",
"Value": ""
},
{
"Snippet": "mx",
"Qualifier": [
"+",
"Pass"
],
"Type": "Mx",
"Value": ""
},
{
"Snippet": "ip4:116.202.245.110",
"Qualifier": [
"+",
"Pass"
],
"Type": "Ip4",
"Value": "116.202.245.110"
},
{
"Snippet": "include:spf.azehosting.net",
"Qualifier": [
"+",
"Pass"
],
"Type": "Include",
"Value": "spf.azehosting.net"
},
{
"Snippet": "include:eu.mailgun.org",
"Qualifier": [
"+",
"Pass"
],
"Type": "Include",
"Value": "eu.mailgun.org"
}
]
}
Response Example (Warning – JSON):
{
"Status": 200,
"Data": [ ... ],
"Warning": "Too many lookups in your SPF record. Try to keep the number of lookups below 10."
}
Response Example (Error – JSON):
{
"Status": 400,
"Message": "We were not able to read your SPF record, as we came across a syntax error."
}
DNS API SSL Lookup
This endpoint returns detailed information about both server- and root/intermediate SSL certificates, with information about supported protocols, expiration, public keys etc.
POST /ssl/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/ssl/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"Server": {
"Request": "dnsinfo.dk",
"RequestError": "",
"CommonName": "dnsinfo.dk",
"Alias": [
"dnsinfo.dk",
"cpanel.dnsinfo.dk",
"cpcalendars.dnsinfo.dk",
"cpcontacts.dnsinfo.dk",
"dnsinfo.zencode.dk",
"mail.dnsinfo.dk",
"webdisk.dnsinfo.dk",
"webmail.dnsinfo.dk",
"www.dnsinfo.dk",
"www.dnsinfo.zencode.dk"
],
"ServerIP": "116.202.245.110",
"ServerAddress": "ax01.azehosting.net",
"ProtocolsSupported": {
"Success": [
"TLS v1.2"
]
},
"CertificateStatus": "Gyldigt",
"DateIssued": {
"Timestamp": 1598140800,
"FormattedDate": "23. august 2020"
},
"Expires": {
"Timestamp": 1606003199,
"FormattedDate": "22. november 2020"
},
"DaysToRenewal": 56,
"Serial": "0xD78DD2D5E235E718EF4CE97413A9AF9B",
"SerialHex": "D78DD2D5E235E718EF4CE97413A9AF9B",
"SHA1Fingerprint": "a2086de9405cc9c2102893813192583d5d81dea7",
"SignatureAlgorithm": "RSA-SHA256",
"CertificateHash": "dfeb4062",
"Issuer": "cPanel, Inc. Certification Authority(cPanel, Inc.)",
"Functions": "Digital Signature, Key Encipherment, TLS Web Server Authentication, TLS Web Client Authentication",
"PublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnCb5qBQVfPTca31GWrQf\n0p8easGh7NZ2PHYV0kd0xZ11QRdsE8IwcBbuii99L4x1a+n5+LRxQlZkJZk2AFaB\nbppzggfuvHtnX7Ie8RgG5RDGdouHT8fJD1jHFjgkppoRfeXtZj0b/oa6aJ8vCcZ7\nrFvr49YCrj2bNaekv3dH2AvpRzgTGz0iDS2zl52tnQ5egQQJVAVWeE2sxnKx4Xcw\n2xfDYZN3dmJ8eBgNNhJh8XPbTMc8c4m/NRJfuthqZcmtm3NGwjzsmjqimOaC6NGe\nG9cCNmWFpQhPRcOhykvDxBf0B2azzfjjJ26uOxmHoBjvcmSq8hC86tAnoF1FZeIl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hTvW7Jf4UTaiMIBNEyoI77B0wODZtGF69gCQZ6+\n8/Q62YdOpG+1W23hEjTJxneAFiZT2lf/XYfdIw+7ViUfmbPcR8Did3D5leOdm8SU\nZbptwaqXXwRy/7GtaJtl1P0vA/627V3MjsOvQOdSZ9n9HzXWGZBpUlnolQggyYFJ\n+q7K4KnhgRWDE1QS3Q+W0nBDP7VovC4LNuV0xapmLKMusVUVuFQkKA==\n-----END CERTIFICATE-----\n"
},
"Intermediate": [
{
"CommonName": "cPanel, Inc. Certification Authority",
"Alias": "",
"CertificateStatus": "Gyldigt",
"DateIssued": {
"Timestamp": 1431907200,
"FormattedDate": "18. maj 2015"
},
"Expires": {
"Timestamp": 1747526399,
"FormattedDate": "18. maj 2025"
},
"DaysToRenewal": 1694,
"Serial": "0xF01D4BEE7B7CA37B3C0566AC05972458",
"SerialHex": "F01D4BEE7B7CA37B3C0566AC05972458",
"SHA1Fingerprint": "a2086de9405cc9c2102893813192583d5d81dea7",
"SignatureAlgorithm": "RSA-SHA384",
"CertificateHash": "1400f578",
"Issuer": "COMODO RSA Certification Authority(COMODO CA Limited)",
"Functions": "Digital Signature, Certificate Sign, CRL Sign, TLS Web Server Authentication, TLS Web Client Authentication",
"PublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAi14BVrnsaxHvSOlDnpvI\nulORpb2rKvpeOjXhDVw16lKomTQoD35ZK0hr57TXS30vg8/+iybDWXkfYKFpp1rL\nnzch7xi9m/1B63V8t5bZXobLKhLip/cD5M7mBfdBmx680vbRZmlRDN617TwLJ8+I\njiA9406VjxU0xibL9z9k6fUwJX3NqTmbP+p6aSuLxH0L+FaTtmuWyuzP0nu9Q77T\n9YnaTXRJIcS99TC8vEmpZRWz1v+/HZCUnAgltq3P/MfZ+1XVGdBKv2JG5STtj75k\nmAxqUZ56gHMgqbTZv0NqnhCtK6DNZK1AOdLiuNvC8jqj4rcWlx8e9s/fPB5Y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0EdsoB4ULC1yHP+Q==\n-----END CERTIFICATE-----\n"
},
{
"CommonName": "COMODO RSA Certification Authority",
"Alias": "",
"CertificateStatus": "Gyldigt",
"DateIssued": {
"Timestamp": 1072915200,
"FormattedDate": " 1. januar 2004"
},
"Expires": {
"Timestamp": 1861919999,
"FormattedDate": " 1. januar 2029"
},
"DaysToRenewal": 3018,
"Serial": "138068127363266052427974132567073013892",
"SerialHex": "67DEF43EF17BDAE24FF5940606D2C084",
"SHA1Fingerprint": "a2086de9405cc9c2102893813192583d5d81dea7",
"SignatureAlgorithm": "RSA-SHA384",
"CertificateHash": "d6325660",
"Issuer": "AAA Certificate Services(Comodo CA Limited)",
"Functions": "Digital Signature, Certificate Sign, CRL Sign",
"PublicKey": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAkehUktIKVrGsDSTdxc9E\nZ3SZKzejfSNwAHG8U9/E+ioSj0t/EFa9n3Byt2F/yUsPF6c947AEYe7/EZfH9IY+\nCvo+XPmT5jR62RRr55yzhaCCenavcZDX7P0N+pxs+t+wgvQUfvm+xKYvT3+Zf7X8\nZ0NyvQwA1onrayzT7Y+YHBSrfuXjbvzYqOSSJNpDa2K4Vf3qwbxstovzDo2a5Jts\naZn4eEgwRdWt4Q08RWD8MpZRJ7xnw8outmvqRsfHIKCxH2XeSAi6pE6p8oNGN4Tr\n6MyBSENnTnIqm1y9TBsoilwie7SrmNnu4FGDwwlGTm0+mfqVF9p8M1dBPI1R7Qu2\nXK8sYxrfV8g/vOldxJuvRZnio1oktLqpVj3Pb6r/SVi+8Kj/9Lit6Tf7urj0Czr5\n6ENCHonYhMsT8dm74YlguIwoVqwUHZwK53Hrzw7dPamWoUi9PPevtQ0iTMARgexW\nO/bTouJbt7IEIlKVgJNp6I5MZfGRAy1wdALqi2cVKWlSArvX31BqVUa/oKMoYX9w\n0MOiqiwhqkfOKJwGRXa/ghgntNWutMtQ5mv0TIZxMOmm3xaG4N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s you check if a domain or IP address is registered on one or more of the most well known blacklists. If you post a domain, this is automatically translated to an IP address, which means you can use both in your request.
As this request is highly demanding, the response is cached for one hour. You will be provided with information about whether the response comes from the cache or not.
POST /blacklist/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/blacklist/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"ServedFromCache": "No",
"NotListed": [
"dnsbl-1.uceprotect.net",
"dnsbl-2.uceprotect.net",
"dnsbl-3.uceprotect.net",
"dnsbl.dronebl.org",
"dnsbl.sorbs.net",
"spam.dnsbl.sorbs.net",
"bl.spamcop.net",
"zen.spamhaus.org",
"bsb.empty.us",
"csi.cloudmark.com",
"black.junkemailfilter.com",
"dyna.spamrats.com",
"spam.spamrats.com",
"noptr.spamrats.com"
]
}
DNS API Nameserver Lookup
This endpoint returns the nameserver activity status. If you post the domain of a nameserver, you will get the status for this particular nameserver. If you post a regular domain name, you will get the status of all nameservers registered for this domain.
POST /ns/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/ns/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (Nameserver – JSON):
{
"Status": 200,
"Nameservers": [
{
"Nameserver": "ns-cloud-d1.googledomains.com",
"NameserverStatus": "Active"
}
]
}
Response Example (Domain – JSON):
{
"Status": 200,
"Nameservers": [
{
"Nameserver": "ns-cloud-d1.googledomains.com",
"NameserverStatus": "Active"
},
{
"Nameserver": "ns-cloud-d2.googledomains.com",
"NameserverStatus": "Active"
},
{
"Nameserver": "ns-cloud-d3.googledomains.com",
"NameserverStatus": "Active"
},
{
"Nameserver": "ns-cloud-d4.googledomains.com",
"NameserverStatus": "Active"
}
]
}
DNS API IP Location
This endpoint can be used to get very specific and detailed information about a servers physical location. If you post a domain, this is automatically translated to an IP address, which means you can use both in your request.
POST /geo/
Request Example:
$ch = curl_init();
$post_body = http_build_query( array(
'client_id' => 'a7619bd44f333f1ca8e1b8360e804781',
'token' => '703880e43b7e05690d76be79074c966bf466bdfc',
'lookup' => 'dnsinfo.dk',
) );
curl_setopt( $ch, CURLOPT_URL, 'https://www.dnsinfo.dk/wp-json/dns/v1.0/geo/' );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_body );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$response_json = curl_exec( $ch );
$response_object = json_decode( $response_json );
$response_array = json_decode( $response_json, true );
curl_close( $ch );
Response Example (JSON):
{
"Status": 200,
"IP": "116.202.245.110",
"Type": "ipv4",
"Hostname": "ax01.azehosting.net",
"ContinentCode": "EU",
"ContinentName": "Europe",
"CountryCode": "DE",
"CountryName": "Germany",
"RegionCode": "BY",
"RegionName": "Bavaria",
"Zip": "91710",
"City": "Gunzenhausen",
"Latitude": 49.11594009399414,
"Longitude": 10.753399848937988,
"Capital": "Berlin",
"CallingCode": "49",
"IsEU": "Yes",
"Languages": [
{
"LanguageCode": "de",
"LanguageCodeFull": "de_DE",
"LanguageName": "German",
"LanguageNativeName": "Deutsch"
}
]
}
No Results?
If the API request is valid but no results are found, the request will subtract 1 from your accounts credit, and you will get a response like the following:
{
"Status": 202,
"Message": "No data found for \"dnsinfo.dk\""
}