> The new HTTPS REST OverbyteIcsHttpRestTst sample allows you to 
> make Json DNS look-up requests to Cloudflare.  

In the sample, set URL: https://cloudflare-dns.com/dns-query

Then three REST parameters in the grid, all raw: 

name=www.bbc.co.uk
type=A
ct=application/dns-json

set GET and URL encoded, and you will get back some Json arrays,
including:

Answer":[{"name": "www.bbc.co.uk.", "type": 5, "TTL": 33, "data":
"www.bbc.net.uk."},{"name": "www.bbc.net.uk.", "type": 1, "TTL": 32,
"data": "212.58.244.71"},{"name": "www.bbc.net.uk.", "type": 1, "TTL":
32, "data": "212.58.249.213"}]}

which you can parse to get your IPs, the API will also work with
Wireformat, which is how UDP DNS works.  

Angus


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to