Yum install-y bind Bind-chroot bind-util bind-libs
Vi/etc/named.conf
Listen-on Port 53 {192.168.100.10;};
allow-query {any;};
Zone "Sleeper.com" in {
Type master;
File "zone.sleeper.com";
};
Zone "100.168.192.in-addr.arpa" in {
Type master;
File "zone.192.168.100";
};
Cd/var/named ( Note: There is a directory "/var/named" in the/etc/named.conf, the area file content location to match here, or start named Service will error )
Forward parsing area
VI zone.sleeper.com
$TTL 86400
@inSOAdc002.sleeper.com. zwj9152.arcsoft.com.cn. (
001
1D
1H
1W
3H)
InNSdc002.sleeper.com.
dc002inA192.168.100.20
dc001inA192.168.100.10
Reverse Parse Zone
VI zone.192.168.100
$TTL 86400
@inSOAdc002.sleeper.com. zwj9152.arcsoft.com.cn. (
001
1D
1H
1W
3H)
InNSdc002.sleeper.com.
inPTRdc002.sleeper.com.
TeninPTRdc001.sleeper.com.
To modify the NDS server address:
Vi/etc/resolv.conf
NameServer 192.168.100.20
Test
[email protected] named]# nslookup dc001.sleeper.com
Server:192.168.100.20
Address:192.168.100.20#53
Name:dc001.sleeper.com
address:192.168.100.10
CENTOS7 DNS Installation Records