About DNS API

  • Home
  • Tools
    1. DNS Tools
    2. DNS API
    3. Email Tools
    4. FTP Tool
    5. SSL Tools
    6. Password Generator
    7. HTTP Tools
  • Projects
    1. Port Scanner
  • About
  • Contact

About DNS API

Use the DNS API to query DNS Records from the DNS Tool with a single URL and return results in HTML, JSON, and XML. The DNS API allows you to use your own site or form to perform DNS Lookups.

How to Use

Request Format:
http://www.yrmailfrom.me/tools/dns/dns_api_get.php?d=[DOMAIN]&t=[TYPE]&ns=[NAMESERVER]

Format Key (* - Required):

Example Use

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>

Copyright 2010. Designed by Trinity Intrigue
XHTML | CSS
[DOMAIN]*The Domain to query for DNS Records.
[TYPE]*Response format: html, json, xml.
[NAMESERVER]A second name server address to perform the query against.