Table of Contents

Comprehensive guide to creating and managing DNS zones in BIND9 server environments.

Zone Configuration

Forward Zone Example

# Add zone to named.conf.local
zone "example.com" {
    type master;
    file "/etc/bind/zones/db.example.com";
    allow-transfer { 192.168.1.11; };
};

Zone File Creation

# Create zone file
sudo nano /etc/bind/zones/db.example.com

$TTL    86400
@       IN      SOA     ns1.example.com. admin.example.com. (
                     2023091201         ; Serial
                         3600           ; Refresh
                         1800           ; Retry
                       604800           ; Expire
                        86400 )         ; Minimum TTL

@       IN      NS      ns1.example.com.
@       IN      A       192.168.1.100
ns1     IN      A       192.168.1.10
www     IN      A       192.168.1.100

Reverse Zone

# Reverse zone configuration
zone "1.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/zones/db.192.168.1";
};

Pro Tip: Always increment the serial number when making zone file changes to ensure proper zone transfer.

Proper zone configuration ensures reliable DNS resolution and zone delegation.