Page 1 of 1

Free IP and Domain API

PostPosted: Mon Sep 28, 2015 5:22 pm
by Mccourt.cordingley1372837951
Hi All

Just a quick note.

I have recently built a small service to enable the lookup of domain and ip information through simple get requests.

Its free forever and available here.

Examples are using curl and wget but you can simply do the same using the http client.

If anyone is interested please reply to this post and i will provide an example on how to do this in servoy using the http client.


Re: Free IP and Domain API

PostPosted: Mon Sep 28, 2015 5:51 pm
by Mccourt.cordingley1372837951
I thought i may as well do the examples anyway.

Here goes

Code: Select all
var ip = "x.x.x.x"
var domain = ""
var iplookup = plugins.http.createNewHttpClient().createGetRequest(""+domain).executeRequest().getResponseBody()
var reversedns = plugins.http.createNewHttpClient().createGetRequest(""+ip).executeRequest().getResponseBody()
var yourExternalIp = plugins.http.createNewHttpClient().createGetRequest("").executeRequest().getResponseBody()
var yourReverseDns = plugins.http.createNewHttpClient().createGetRequest("").executeRequest().getResponseBody()
var geoLocateIp = plugins.http.createNewHttpClient().createGetRequest(""+ip).executeRequest().getResponseBody()
var geoLocateDomain = plugins.http.createNewHttpClient().createGetRequest(""+domain).executeRequest().getResponseBody()
var dnsServerRecordLookup = plugins.http.createNewHttpClient().createGetRequest(""+domain).executeRequest().getResponseBody()

Any questions give me a yell.