This section describes in detail the subdomain authorization of the DNS server and the configuration of the secondary DNS. on the Internet, the root domain server uses cn .; edu .; hk. such a top-level domain name is authorized to the corresponding DNS server for management, and the reverse region of the DNS server of these subdomains needs to be transferred to the root domain name server, which is achieved through the secondary DNS region transfer. In the following configuration, the server simulates the working mechanism of the Root Domain Name server; the client simulates the subdomain server, serverIP: 192.168.100.254/24 clie
This section describes in detail the subdomain authorization of the DNS server and the configuration of the secondary DNS. on the Internet, the root domain server uses cn .; edu .; hk. such a top-level domain name is authorized to the corresponding DNS server for management, and the reverse region of the DNS server of these subdomains needs to be transferred to the root domain name server, which is achieved through the secondary DNS region transfer. In the following configuration, the server simulates the working mechanism of the Root Domain Name server; the client simulates the subdomain server. The server IP address is 192.168.100.254/24 client IP: 192.168.100.20/24.
I. subdomain authorization
[Root @ server ~] # Cat/var/named/chroot/var/named/6688. zone // specify the subdomain authorization on the server
$ TTL 86400
@ In soa 6688. cc. root.6688.cc .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
@ In ns 6688. cc.
@ In mx 10 6688. cc.
Www.6688.cc. in ns www.6688.cc. // specify www.6688.cc as the authoritative NS for this domain
Www.6688.cc. in a 192.168.100.20 // specify the IP address of the authoritative DNS server www.6688.cc.
Www in a 192.168.100.254
Ftp in cname www
[Root @ server ~] # Service named restart // restart the service
Stopping named: [OK]
Starting named: [OK]
[Root @ client ~] # Grep-v '^ //'/etc/named. conf | grep-v '// master configuration file of the client Server
Options {
Listen-on port 53 {192.168.100.20 ;};
Directory "/var/named ";
Allow-query {any ;};
};
Include "/etc/named. rfc1912.zones ";
Zone "www.6688.cc" IN {
Type master;
File "www.6688.cc ";
Allow-update {none ;};
};
Zone "1.1.1.in-addr. arpa" IN {
Type master;
File "1.1.1.zone ";
Allow-update {none ;};
};
[Root @ client ~] # Cat/var/named/chroot/var/named/www.6688.cc // forward region file of the client Server
$ TTL 86400
@ In soa www.6688.cc. root. www.6688.cc .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
@ In ns www.6688.cc.
@ In a 192.168.100.20
Www in a 1.1.1.1
Ftp in a 1.1.1.2
[Root @ client ~] # Cat/var/named/chroot/var/named/1.1.1.zone // reverse region file of the client Server
$ TTL 86400
@ In soa www.6688.cc. root. www.6688.cc .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
@ In ns www.6688.cc.
20 in ptr www.6688.cc.
1 in ptr www. www.6688.cc.
2 in ptr ftp. www.6688.cc.
[Root @ client ~] # Service named configtest // test configuration file
Zone localdomain/IN: loaded serial 42
Zone localhost/IN: loaded serial 42
Zone 0.0.127.in-addr. arpa/IN: loaded serial 1997022700
Zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Zone 255. in-addr.arpa/IN: loaded serial 42
Zone 0. in-addr.arpa/IN: loaded serial 42
Zone www.6688.cc/IN: loaded serial 42
Zone 1.1.1.in-addr. arpa/IN: loaded serial 1997022700
[Root @ client ~] # Service named restart // restart the service
Stopping named: [OK]
Starting named: [OK]