A comprehensive guide to setting up and managing DNS zones using BIND9 DNS server.
Before setting up a DNS zone on Bind9, ensure you have:
Understanding key DNS concepts:
Use our zone file generator to create your Bind9 configuration:
zone "example.com" {
type master;
file "/etc/bind/zones/db.example.com";
allow-transfer { none; };
};
$TTL 604800
@ IN SOA ns1.example.com. admin.example.com. (
2024040101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ 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 DNS configuration:
sudo named-checkconf
sudo named-checkzone example.com /etc/bind/zones/db.example.com
sudo systemctl restart bind9
dig @localhost example.com
nslookup example.com localhost
Advanced DNS features and configurations:
DNSCaptain is an independent service. We are not affiliated with any commercial DNS provider.