I haven't tried the libraries mentioned above, but the I would consider using services instead of libraries. I don't know what's the desired use-case, but you can deliver this functionality even on asp.net web application, cross-platform mobile application or mobile website.
- Look for online DNS tools (such as DNSWatch), which returns the necessary domain info by URL parameters.
- Check the HTML stucture of the result page
You can process this HTML, but Yahoo can do is dirty job for you using YQL html processor and return the relevant part in XML or JSON.
- Visit YQL Console
- Fill the SQL Statement textarea with the following:
select * from html where url="YOUR PARAMETRIC DNS URL" and
xpath='XPATH QUERY TO ACCESS NS OR MX RECORD IN THE RESULT HTML'
- Test your YQL Statement in the console
- Develop a single client application, which executes the YQL statement via HTTP request. You can take hints from this YQL JavaScript tutorial.
Pros:
-your application can be very lightweight
Cons:
-the HTML structure of the result page can be changed or DNSWatch can refuse your request after over-using resources.
Nevertheless you can implement the working prototype in 1 hour.