{"repo":"lsongdev/node-dns","free":true,"listed":false,"github":"https://github.com/lsongdev/node-dns","clone":"git clone https://github.com/lsongdev/node-dns.git","description":":globe_with_meridians: DNS Server and Client Implementation in Pure JavaScript with no dependencies.","language":"JavaScript","stars":593,"topics":["dns","nodejs","network","dns-server","dns-protocol","dns-client","udp","dns2","lookup","tcp"],"license":"MIT","category":"networking-infra","readme_excerpt":"dns2 ![NPM version][npm-img] [![Build Status][ci-img]][ci-url] A DNS Server and Client Implementation in Pure JavaScript with no dependencies. Features - Server and Client - Lot of Type Supported - Extremely lightweight - DNS over UDP, TCP, HTTPS Supported Installation DNS Client (default UDP) Lookup any records available for the domain lsong.org . DNS client will use UDP by default. The high-level DNS class exposes convenience methods for common record types: Method Record type Key answer fields ----------------------- ----------- ------------------------------------------------------------------------- resolveA(domain) A address resolveAAAA(domain) AAAA address resolveMX(domain) MX exchange , priority resolveCNAME(domain) CNAME domain resolveSOA(domain) SOA primary , admin , serial , refresh , retry , expiration , minimum resolvePTR(domain) PTR domain resolveDNSKEY(domain) DNSKEY publicKey , algorithm resolveRRSIG(domain) RRSIG varies For any record type not listed above, use dns.resolve(domain, 'TYPE') directly. Every name server is queried in parallel and the first successful reply wins. If all of them fail, the rejection names each server and its reason. When a packet fails to decode Packet.parse throws a Packet.DecodeError when a message cannot be decoded at all — it is shorter than a 12-octet header, or not a Buffer: Once the header decodes, a malformed record no longer disappears silently. Records that cannot be decoded are dropped — a half-populated record would be w","default_branch":null,"files":null,"tree":[],"storefront":"/r/lsongdev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lsongdev/node-dns/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}