tjfontaine/node-dns — Issue #2: Proxying requests?
Author: daguej
Created: 2012-01-26 06:07:55+00:00
State: open

What's the best way to proxy DNS requests? For example, in [ndns](https://github.com/atrniv/ndns) it is simple:

server.on("request", function(req, res) {
var c_req = client.request(REMOTE_PORT, REMOTE_HOST);
c_req.on("response", function (c_res) {
res.send(c_res);
});
c_req.send(req);
});