Skip to content

Releases: LayeredStudio/dns-records

v2.3

27 Jan 00:59
Compare
Choose a tag to compare
  • Updated: use URL (instead of punycode) to convert domain to ASCII. Fixes #70

v2.2.2

26 Jan 09:31
Compare
Choose a tag to compare
  • Fixed: export for getDnsRecords
  • Perf: use Set instead of Array for list of unique records c7661d5

v2.2.1

23 Jan 08:01
Compare
Choose a tag to compare
  • updated: Workflow to publish npm package

v2.2

23 Jan 06:50
Compare
Choose a tag to compare
  • Read Authority field in Cloudflare/Google DNS response #59 thanks @stevefrench39
  • Return consistent data from all DNS resolvers: remove ending dot from record names & values. Ex: google.com. -> google.com

v2.1

23 May 16:53
Compare
Choose a tag to compare

Added:

  • option to skip checking subdomains from built-in list
  • if resolver option is not set, the best dns resolver for current JS runtime will be used

v2

22 May 17:50
Compare
Choose a tag to compare
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 CommonJS require()
  • getAllRecords() renamed to getAllDnsRecords()
  • getNameServers is removed, use getDnsRecords(name: string, type = 'NS')

What's new

  • DNS lookup over http. resolver option in getDnsRecords() and getAllDnsRecords() can be set to cloudflare-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

v1.5

09 Dec 14:00
Compare
Choose a tag to compare
  • Updated - remove ending dot form domain result, ex: ns1.example.com. -> ns1.example.com

1.4.3

29 Nov 19:13
Compare
Choose a tag to compare
  • Fixed - match more subdomains into wildcard group
  • Removed - some unused subdomains from list

v1.4.2

11 Sep 15:26
Compare
Choose a tag to compare
  • Updated - Discover BIMI txt record

v1.4.1

02 Jul 14:48
Compare
Choose a tag to compare
  • Updated - extract subdomains from TXT spf record