DNS server: BIND

Zones

by ross at 17:00:42 on March 20, 2014

/usr/local/etc/namedb/dynamic/lan-forward

$TTL    3600
lan.            IN      SOA     coffin.lan. root.coffin.lan. (
                                2008080804      ; Serial
                                10800           ; Refresh
                                3600            ; Retry
                                604800          ; Expire
                                86400 )         ; Minimum TTL
                IN      NS      coffin.lan.
                IN      MX 10   coffin.lan.

www             IN      CNAME   coffin.lan.

coffin          IN      A       192.168.10.1

/usr/local/etc/namedb/dynamic/lan-reverse

$TTL    3600
10.168.192.in-addr.arpa. IN SOA coffin.lan. root.coffin.lan. (
                                2008080804      ; Serial
                                10800           ; Refresh
                                3600            ; Retry
                                604800          ; Expire
                                86400 )         ; Minimum TTL
                IN      NS      coffin.lan.

1               IN      PTR     coffin.lan.

Check and compile new zones:

# cd /usr/local/etc/namedb/dynamic
# named-checkzone lan lan-forward
# named-checkzone 10.168.192.in-addr.arpa lan-reverse
# named-compilezone -o lan-forward.db lan lan-forward
# rm lan-forward.db.jnl
# named-compilezone -o lan-reverse.db 10.168.192.in-addr.arpa lan-reverse
# rm lan-reverse.db.jnl

Start named:

# service named start

 

Comments