![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
dns-zone-validator
Advanced tools
DNS zone tool
DNS zones have numerous rules regarding the records that can exist in them. Examples:
Etc, etc, etc..
This module will input a collection of dns-resource-records and validate that all the zone records can coexist.
➜ ./bin/dns-zone -h
+-+-+-+ +-+-+-+-+
|D|N|S| |Z|O|N|E|
+-+-+-+ +-+-+-+-+
I/O
-i, --import <stdin | file path> source of DNS zone data (default: stdin)
-e, --export <json | bind | tinydns> zone data export format
Zone Settings
-o, --origin string zone $ORIGIN
-t, --ttl number zone default TTL
-c, --class string zone class (default: IN)
Output Options
--hide-origin remove origin from RR domain names (default: false)
--hide-class hide class (default: false)
--hide-ttl hide TTLs (default: false)
Misc
-v, --verbose Show status messages during processing
-h, --help Display this usage guide
Examples
1. BIND file to human ./bin/dns-zone -i ./isi.edu
2. tinydns file to BIND ./bin/dns-zone -i ./data -e bind
3. BIND file to tinydns ./bin/dns-zone -i ./isi.edu -e tinydns
Project home: https://github.com/nictool/dns-zone
➜ cat example.com | ./bin/dns-zone --origin=example.com
example.com. 3600 SOA ns.example.com. username.example.com. 2020091025 7200 3600 1209600 3600
example.com. 3600 NS ns.example.com.
example.com. 3600 NS ns.somewhere.example.
example.com. 3600 MX 10 mail.example.com.
example.com. 3600 MX 20 mail2.example.com.
example.com. 3600 MX 50 mail3.example.com.
example.com. 3600 A 192.0.2.1
example.com. 3600 AAAA 2001:0db8:0010:0000:0000:0000:0000:0001
ns.example.com. 3600 A 192.0.2.2
example.com. 3600 AAAA 2001:0db8:0010:0000:0000:0000:0000:0002
www.example.com. 3600 CNAME example.com.
wwwtest.example.com. 3600 CNAME www.example.com.
mail.example.com. 3600 A 192.0.2.3
mail2.example.com. 3600 A 192.0.2.4
mail3.example.com. 3600 A 192.0.2.5
➜ ./bin/dns-zone -i isi.edu -e bind
$TTL 60
$ORIGIN isi.edu.
isi.edu. IN SOA venera.isi.edu. action.domains.isi.edu. (
20 ; SERIAL
7200 ; REFRESH
600 ; RETRY
3600000; EXPIRE
60
)
isi.edu. 60 IN NS A.ISI.EDU.
isi.edu. 60 IN NS venera.isi.edu.
isi.edu. 60 IN NS vaxa.isi.edu.
isi.edu. 60 IN MX 10 venera.isi.edu.
isi.edu. 60 IN MX 20 vaxa.isi.edu.
a 60 IN A 26.3.0.103
venera 60 IN A 10.1.0.52
venera 60 IN A 128.9.0.32
vaxa 60 IN A 10.2.0.27
vaxa 60 IN A 128.9.0.33
➜ ./bin/dns-zone -i isi.edu -e bind --ttl=60 --hide-ttl --hide-class --hide-origin
$TTL 60
$ORIGIN isi.edu.
@ IN SOA venera action.domains (
20 ; SERIAL
7200 ; REFRESH
600 ; RETRY
3600000; EXPIRE
60
)
@ NS a
@ NS venera
@ NS vaxa
@ MX 10 venera
@ MX 20 vaxa
a A 26.3.0.103
venera A 10.1.0.52
venera A 128.9.0.32
vaxa A 10.2.0.27
vaxa A 128.9.0.33
➜ ./bin/dns-zone -i isi.edu -e tinydns
Zisi.edu:venera.isi.edu:action.domains.isi.edu:20:7200:600:3600000:60:60::
&isi.edu::A.ISI.EDU:60::
&isi.edu::venera.isi.edu:60::
&isi.edu::vaxa.isi.edu:60::
@isi.edu::venera.isi.edu:10:60::
@isi.edu::vaxa.isi.edu:20:60::
+a.isi.edu:26.3.0.103:60::
+venera.isi.edu:10.1.0.52:60::
+venera.isi.edu:128.9.0.32:60::
+vaxa.isi.edu:10.2.0.27:60::
+vaxa.isi.edu:128.9.0.33:60::
@
to zone name0.5.0 - 2022-03-27
FAQs
DNS Zone
The npm package dns-zone-validator receives a total of 0 weekly downloads. As such, dns-zone-validator popularity was classified as not popular.
We found that dns-zone-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.