A comprehensive guide to setting up and managing DNS zones using NSD (Name Server Daemon).
Before setting up a DNS zone on NSD, ensure you have:
Understanding key NSD concepts:
Use our configuration generator to create your NSD configuration:
server:
server-count: 1
ip-address: 0.0.0.0
port: 53
verbosity: 3
zonesdir: "/etc/nsd/zones"
zone:
name: "example.com"
zonefile: "example.com.zone"
notify: 192.0.2.2 NOKEY
provide-xfr: 192.0.2.2 NOKEY
$ORIGIN example.com.
$TTL 3600
@ IN SOA ns1.example.com. admin.example.com. (
2024040101 ; Serial
7200 ; Refresh
3600 ; Retry
1209600 ; Expire
3600 ; Minimum
)
@ IN NS ns1.example.com.
@ IN A 192.0.2.1
ns1 IN A 192.0.2.1
www IN A 192.0.2.1
mail IN A 192.0.2.1
@ IN MX 10 mail.example.com.
Verify your NSD configuration:
nsd-checkconf /etc/nsd/nsd.conf
nsd-checkzone example.com /etc/nsd/zones/example.com.zone
sudo systemctl restart nsd
dig @localhost example.com
nslookup example.com localhost
Advanced NSD features and configurations:
DNSCaptain is an independent service. We are not affiliated with any commercial DNS provider.