Performing DNS Queries via Javascript from Chrome App

2

Goal: Create a Chrome app/extension to determine value of DNS requests in local value (i.e., determine what A and CName records a local machine or its delegated resolver is returning when Chrome issues a DNS request). For example, the Chrome app would take as input "www.google.com" and return the IP of the A record.

I have thus far tried two different approaches:

(1) http://developer.chrome.com/apps/socket.htm This is very close. I am able to simulate a UDP connection on port 53. The only problem is that I don't know what the hostname is for the DNS resolver.

(2) https://developer.chrome.com/extensions/webRequest.html This is not that close to providing what I need.

eb80

Posted 2012-12-21T06:40:44.423

Reputation: 233

There is a DNS client library for Javascript at DNS-JS.com that might help? – Fiach Reid – 2019-08-14T16:24:31.700

No answers