1. Install bind
# install bindyum install-y bind Bind-chroot bind-utils
2. master configuration file
Vi/etc/named.conf
# modify the listener to native IPlisten-on port 172.18.0.227;}; # allow all people to access allow-query {any;};
3. Add a Domain Configuration
Vi/etc/named.rfc1912.zones
#Domain name configuration: Forward parsing configurationZone"wanmagroup.com" inch{type Master; File"Named.wanmagroup.com.zone"; allow-update {none;};};#Reverse parsing configurationZone"0.18.172.in-addr.arpa" inch{type Master; File"Named.0.18.172.in.zone"; allow-update {none;};};
Forward parsing configuration file establishment
# forward configuration parsing file $TTL 86400@ in SOA @ root. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H) ; Minimum in NS @ in A 172.18.0.227* in A 172.18.0.227
# Reverse Configuration parsing file $TTL 1D@ in SOA @ root. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H) ; Minimum NS @ A 172.18.0.227
4. Check the configuration
# Check the main profile named-checkconf# Check forward profile named-checkzone wanmagroup.com Named.wanmagroup.com.zone# Check the reverse configuration file named-checkzone wanmagroup.com named.0.18.172. in. Zone
5. Start the server
# Restart Service systemctl Restart Named.service # Check Service status systemctl status named.service-l
Linux DNS Configuration