Article Title: Smart resolution for dual-line DNS 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. 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:
Note: The IP addresses in the ACL are Unicom and the latest. This is what our data center dedicated !!!
# Vi/usr/local/named/etc/named. conf
====================================== Named. conf =
Acl "trust-lan" {any ;};
Options {
Directory "/usr/local/named/etc /";
Pid-file "/var/run/named. pid ";
Version "0.0.0 ";
Auth-nxdomain no;
Allow-query {any ;};
Allow-transfer {"trust-lan ";};
Allow-Permission y {"trust-lan ";};
};
Logging {
Channel warning {file "/var/log/named/dns_warnings" versions 3 size 1240 k;
Severity warning;
Print-category yes;
Print-severity yes;
Print-time yes;
};
Channel general_dns
{File "/var/log/named/dns_logs" versions 3 size 1240 k;
Severity info;
Print-category yes;
Print-severity yes;
Print-time yes;
};
Category default {warning ;};
Category queries {general_dns ;};
};
[1] [2] [3] [4] [5] [6] [7] Next page