v2
v2 is here
@layered/dns-records
now uses http DNS resolvers by default, so it works in all JavaScript runtimes. Using DNS lookup withdig
command is still available, but needs to be included specifically when querying DNS records.
Breaking changes
- the library is ESM only now. Use
v1.x
if your projects uses CommonJSrequire()
getAllRecords()
renamed togetAllDnsRecords()
getNameServers
is removed, usegetDnsRecords(name: string, type = 'NS')
What's new
- DNS lookup over http.
resolver
option ingetDnsRecords()
andgetAllDnsRecords()
can be set tocloudflare-dns
(default),google-dns
or a Function that does custom dns lookup - new function
getAllDnsRecordsStream
that can return dns record lines as they're discovered