Bind9 Config (SOA) - andreydiveev/wiki GitHub Wiki

/etc/bind/named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "example.com" {
        type master;
        file "/etc/bind/zones/example.com";
};

/etc/bind/zones/example.com

$TTL 2m
$ORIGIN example.com.

@               IN      SOA     ns1.example.com  root (
                2016051200      ; serial number
                2m              ; refresh
                1m              ; update retry
                1d6h            ; expiry
                12h             ; minimum
                )

                IN      NS      ns1.example.com.
                IN      NS      ns2.example.com.

ns1             IN      A       10.10.10.10
ns2             IN      A       10.10.10.11

@               IN      A       10.10.10.12