Using the API

If you want to integrate the JSON results to your webpage, you might want to read more about JSONP.

Searching

Method
GET
URL
http://dotnul.com/api/dns/:fqdn
Ouput
JSONP; example for http://dotnul.com/api/whois/dotnul.com:
{
        "whois": "<br />Whois Server Version 2.0<br /><br />Domain names in the .com and .net domains can now be registered<br />with many different competing registrars. Go to http://www.internic.net<br />for detailed information.<br /><br /> Domain Name: DOTNUL.COM<br /> Registrar: EURODNS S.A<br /> Whois Server: whois.eurodns.com<br /> Referral URL: http://www.eurodns.com<br /> Name Server: NS1.EURODNS.COM<br /> Name Server: NS2.EURODNS.COM<br /> Name Server: NS3.EURODNS.COM<br /> Name Server: NS4.EURODNS.COM<br /> Status: clientTransferProhibited<br /> Updated Date: 23-jul-2012<br /> Creation Date: 03-aug-2007<br /> Expiration Date: 03-aug-2014<br /><br />.... blablablaaaa",
        "error": false
}
Response to errorneous query
{
        "whois": null,
        "message": "Whois Exception Whois::ServerNotFound: Unable to find a WHOIS server for `that-wont-work'",
        "error": true
}