Intelligent DNS configuration process in linux (1)

Source: Internet
Author: User

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 ;};

};

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;

};


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.