JSON Example
If you wanted to lookup records for a domain, such as example.com, using the API to get JSON results, you would use the following URL:
http://www.yrmailfrom.me/tools/dns/dns_api_get.php?d=example.com&t=json
The results would look like:
{
"google-public-dns-a.google.com": [
{ "domain": "example.com", "type": "A", "data": "192.0.43.10", "ttl": "61289" }
{ "domain": "www.example.com", "type": "A", "data": "192.0.43.10", "ttl": "44691" }
{ "domain": "example.com", "type": "NS", "data": "b.iana-servers.net", "ttl": "55286" }
{ "domain": "example.com", "type": "NS", "data": "a.iana-servers.net", "ttl": "55286" }
]
}
XML Example
If you wanted to lookup records for a domain, such as example.com, using the API to get XML results, you would use the following URL:
http://www.yrmailfrom.me/tools/dns/dns_api_get.php?d=example.com&t=xml
The results would look like:
<?xml version='1.0'?>
<results>
<google-public-dns-a.google.com>
<domain>
<name>example.com</name>
<type>A</type>
<data>192.0.43.10</data>
<ttl>60804</ttl>
</domain>
<domain>
<name>www.example.com</name>
<type>A</type>
<data>192.0.43.10</data>
<ttl>44207</ttl>
</domain>
<domain>
<name>example.com</name>
<type>NS</type>
<data>b.iana-servers.net</data>
<ttl>1391</ttl>
</domain>
<domain>
<name>example.com</name>
<type>NS</type>
<data>a.iana-servers.net</data>
<ttl>1391</ttl>
</domain>
</google-public-dns-a.google.com>
</results>