Convert hostname to IP Address

How about this one? There probably is a frequency limit, but maybe it does the trick for a reasonable number of accesses? Basically it is a REST-API to the dig command, right?

http://api.myiponline.net/dig?url=cosmicpuppy.com

[[{"host":"cosmicpuppy.com","type":"A","ip":"192.145.239.20","class":"IN","ttl":14400}],[{"host":"cosmicpuppy.com","type":"NS","target":"ns.inmotionhosting.com","class":"IN","ttl":86400},{"host":"cosmicpuppy.com","type":"NS","target":"ns2.inmotionhosting.com","class":"IN","ttl":86400}],[{"host":"cosmicpuppy.com","type":"MX","pri":0,"target":"cosmicpuppy.com","class":"IN","ttl":14400}]]

Main page: http://www.myiponline.net/myapi

…CP / Terry.