DNS-over-HTTPS client for nodejs.
MIT License
DNS-over-HTTPS/DNS-over-TLS client for nodejs, secure your nodejs dns query with modern tls.
$ npm install doh-js-client
const DoH = require('doh-js-client').DoH
let dns = new DoH('google')
dns.resolve('example.com', 'A')
.then(function (record) {
// do something
})
.catch(function (err) {
// something wrong happened
})
const DoT = require('doh-js-client').DoT
let dns = new DoT('google', privateKeyFilePath, certificateFilePath)
dns.resolve('example.com', 'A')
.then(function (record) {
// do something
})
.catch(function (err) {
// something wrong happened
})
Cleanbrowsing doesn't support caa query (return 400).
Supported dns type:
MIT