DNS client and server implementation, supporting both https and udp.
https://push.rocks/smartdns
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
readme.md | ||
tslint.json |
@pushrocks/smartdns
smart dns methods written in TypeScript
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
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
});
For further information read the linked docs at the top of this README.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy