0845680984
  1. 1 – BIND : Configure for Internal Network
  2. 2 – BIND : Configure for External Network
  3. 3 – BIND : Configure Zone Files
  4. 4 – BIND : Verify Resolution
  5. 5 – BIND : Use View Statement
  6. 6 – BIND : Set Alias (CNAME)
  7. 7 – BIND : Configure Chroot Environment
  8. 8 – BIND : Configure Secondary Server

Configure DNS Secondary Server (Slave Server).
On this example, it shows to configure DNS Secondary Server ns.server.education that DNS Master Server is soncq.local configured like here. Replace IP address and Hostname to your own environment.

[1] Configure on DNS Master Server Host.
[root@soncq ~]# vi /etc/named.conf
.....
.....
options {
        listen-on port 53 { any; };
        listen-on-v6 { any; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        secroots-file   "/var/named/data/named.secroots";
        recursing-file  "/var/named/data/named.recursing";
        allow-query     { localhost; internal-network; };
        # add secondary server to allow to transfer zone files
        allow-transfer  { localhost; 192.168.100.85; };
.....
.....

[root@soncq ~]# vi /var/named/local.wan
$TTL 86400
@   IN  SOA     soncq.local. root.local. (
        # update serial if update zone file
        2021022403  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        IN  NS      soncq.local.
        # add secondary server
        IN  NS      ns.server.education.
        IN  A       172.16.0.82
        IN  MX 10   soncq.local.

soncq     IN  A       172.16.0.82
www     IN  A       172.16.0.83

[root@soncq ~]# systemctl restart named
[2] Configure onDNS Secondary Server Host.
[root@ns ~]# vi /etc/named.conf
# add target zone info
# for IP address, it's the Master server's IP address
zone "local" IN {
        type slave;
        masters { 172.16.0.82; };
        file "slaves/local.wan";
        notify no;
};

[root@ns ~]# systemctl restart named
[root@ns ~]# ls /var/named/slaves
local.wan   # zone file transfered

Leave a Comment

Your email address will not be published. Required fields are marked *

Bài viết gần đây:

Shopping Cart