5 ms·
Only problem I see is that the results are cached. If you're trying to build a live lookup tool, then that sort of kills it. I would love an API for DNS that is
by timdorr 17y ago
Only problem I see is that the results are cached. If you're trying to build a live lookup tool, then that sort of kills it. I would love an API for DNS that is non-cached so I can build tools for my support techs.
- jf 17y agoThese results are cached on my end and also by the server I'm querying (Google Public DNS). Non-cached (non recursive) queries are part of the standard that I'm coding towards. I just haven't implemented them yet.
- tlrobinson 17y agoHTTP caching maps nicely to DNS TTLs...
- jf 17y agoYes they do: http://github.com/jpf/jsondns/blob/master/jsondns.rb#L66 http://github.com/jpf/jsondns/blob/master/jsondns.rb#L66 HTTP Status Codes also map pretty nicely to DNS RCODEs.