Skip to content

Instantly share code, notes, and snippets.

View TIRTAGT's full-sized avatar

Matthew Tirtawidjaja TIRTAGT

View GitHub Profile
@andris9
andris9 / app.js
Created July 3, 2020 11:19
dns2 udp/tcp servers
// public domain code
// $ npm install dns2
// $ node app.js
// $ dig A example.com @127.0.0.1 -p5053
// $ dig A example.com +tcp @127.0.0.1 -p5053
const dns = require("dns2");
const { createDNSUdpServer, createDNSTcpServer } = require("./dns-server.js");