Article Title: Intelligent DNS configuration process in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. install the DNS server
1. software list
BIND 9.3.2
Ftp://ftp.isc.org/isc/bind9/9.3.2/bind-9.3.2.tar.gz
Ftp://ftp.isc.org/isc/bind9/9.4.0a6/bind-9.4.0a6.tar.gz
2. install BIND 9
Install BIND9:
# Tar zxvf bind-9.3.2.tar.gz
# Cd bind-9.3.2
#./Configure -- prefix =/usr/local/named -- disable-ipv6
# Make & make install
Create a BIND user:
# Groupadd bind
# Useradd-g bind-d/usr/local/named-s/sbin/nologin bind
Create a configuration file directory:
# Mkdir? P/usr/local/named/etc
# Chown bind: bind/usr/local/named/etc
# Chmod 700/usr/local/named/etc
II. configuration of named. conf
Create the main configuration file:
# Vi/usr/local/named/etc/named. conf
====================================== Named. conf =
Acl "trust-lan" {127.0.0.1/8; 192.168.0.0/16 ;};
Options {
Directory "/usr/local/named/etc /";
Pid-file "/var/run/named. pid ";
Version "0.0.0 ";
Datasize 40 M;
Allow-transfer {
"Trust-lan ";};
Recursion yes;
Allow-policy {
"Trust-lan ";
};
Allow-recursion {
"Trust-lan ";
};
Auth-nxdomain no;
Forwarders {
211.162.106.9;
211.162.106.254 ;};
};
[1] [2] [3] [4] Next page