DNS client and server implementation, supporting both https and udp.
https://push.rocks/smartdns
dist | ||
docs | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package.json | ||
readme.md | ||
README.md | ||
tslint.json | ||
yarn.lock |
dnsly
smart dns methods written in TypeScript
Availabililty
Status for master
Usage
we recommend the use of TypeScript for optimal intellisense
import * as dnsly from 'dnsly'
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
myDnsly.getRecord('example.com','AAAA') // returns promise
.then((record: dnsly.I_AAAA) => { // AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
// do something
})
MIT licensed | © 2016 - 2017 Lossless GmbH