Looking at this seems to be the only way to make a DNS query manually. I am using something like this:
var dns = require('dns'), http = require('http'); function httpRequest(options, body, done) { var hostname = options.hostname || options.host; if (typeof(body) === 'function') { done = body; body = null; }
source share