1. 安装DNS服务器组件:
yum install -y bind bind-chroot bind-utils
2. find -name named.conf,通过此命令找到named.conf在哪里;
[root@VTB93-PC2 /]# find -type f named.conf
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
[root@VTB93-PC2 /]# find -name named.conf
./usr/share/doc/bind-9.3.6/sample/etc/named.conf
./usr/share/logwatch/default.conf/services/named.conf
./etc/dbus-1/system.d/named.conf
3. cd ./usr/share/doc/bind-9.3.6/sample/etc
4. cp ./* /var/named/chroot/etc
5. cd /var/named/chroot/etc
6. vim named.conf
//
// Sample named.conf BIND DNS server 'named' configuration file
// for the Red Hat BIND distribution.
//
// See the BIND Administrator's Reference Manual (ARM) for details, in: