Ubuntu 22.04
Sponsored Link

BIND : Configure Zone Files2022/04/26

 
Replace Network or Domain name on the example below to your own environment.
[1] Create zone files that servers resolve IP address from Domain name.
The example below uses Internal network [10.0.0.0/24], Domain name [srv.world].
Replace to your own environment.
root@dlp:~#
vi /etc/bind/srv.world.lan
$TTL 86400
@   IN  SOA     dlp.srv.world. root.srv.world. (
        # any numerical values are OK for serial number
        # recommended : [YYYYMMDDnn] (update date + number)
        2022042601  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        # define Name Server
        IN  NS      dlp.srv.world.
        # define Name Server's IP address
        IN  A       10.0.0.30
        # define Mail Exchanger Server
        IN  MX 10   dlp.srv.world.

# define each IP address of a hostname
dlp     IN  A       10.0.0.30
www     IN  A       10.0.0.31
[2] Create zone files that servers resolve Domain name from IP address.
The example below uses Internal network [10.0.0.0/24], Domain name [srv.world].
Replace to your own environment.
root@dlp:~#
vi /etc/bind/0.0.10.db
$TTL 86400
@   IN  SOA     dlp.srv.world. root.srv.world. (
        2022042601  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        # define Name Server
        IN  NS      dlp.srv.world.

# define each hostname of an IP address
30      IN  PTR     dlp.srv.world.
31      IN  PTR     www.srv.world.
[3]
Matched Content