[email protected] ~]# Yum List | grep bind
bind.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates
bind-chroot.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates
bind-devel.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates
[email protected] ~]# Yum install-y bind
[[email protected] ~]#/etc/init.d/named start
Generating/etc/rndc.key: [OK]
Start named: [OK]
Configure DNS
1. Modify the master configuration file
[Email protected] ~]# vim/etc/named.conf
Add to:
Zone "123.com" in {
Type master;
File "123.com.zone";
};
[[email protected] ~]# named-checkconf//detect the main configuration file There is no mistake, the words will prompt
2. Edit 123.com.zone
[Email protected] ~]# Cat/var/named/named.localhost
[Email protected] ~]# Vim/var/named/123.com.zone
N SOA @ rname.invalid. (
0; Serial
1D; Refresh
1H; Retry
1W; Expire
3H); Minimum
NS @
A 127.0.0.1
AAAA:: 1
~
This article is from the "Daixuan" blog, make sure to keep this source http://daixuan.blog.51cto.com/5426657/1730960
DNS Installation and Configuration