DEBIANDNS configuration process

Source: Internet
Author: User
Article Title: DEBIANDNS configuration process. 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.

The installation process is as follows: # apt-get install bind9

After the installation is complete, run the whereis bind command to find that the bind is installed in the/etc/bind directory and enter the/etc/bind directory. These files are displayed in the directory:

Db.0 db.127 db.255 db. empty db. local db. rev db. root named. conf

Named. conf. local named. conf. options rndc. key

The key file is named. conf. We can view its content:

// This is the primary configuration file for the bind dns server named.

//

// Please read/usr/share/doc/bind9/README.Debian.gz for information on

// Structure of BIND configuration files in Debian, * BEFORE * you customize

// This configuration file.

//

// If you are just adding zones, please do that in/etc/bind/named. conf. local

Include "/etc/bind/named. conf. options ";

// Prime the server with knowledge of the root servers

Zone "."{

Type hint;

File "/etc/bind/db. root ";

};

// Be authoritative for the localhost forward and reverse zones, and

// Broadcast zones as per RFC 1912.

Zone "localhost "{

Type master;

File "/etc/bind/db. local ";

};

Zone "127. in-addr.arpa "{

Type master;

File "/etc/bind/db.127 ";

};

Zone "0. in-addr.arpa "{

Type master;

File "/etc/bind/db.0 ";

};

Zone "255. in-addr.arpa "{

Type master;

File "/etc/bind/db.255 ";

};

Include "/etc/bind/named. conf. local ";

We noticed that this file includes two files "/etc/bind/named. conf. options "and"/etc/bind/named. conf. local ", in addition to some DNS resolution regions and their records

File recording. In the comments of this file, you are prompted to edit/etc/bind/named. conf. local if you want to add a region.

The file/etc/bind/named. conf. options contains the following content:

Options {

Directory "/var/cache/bind ";

// If there is a firewall between you and nameservers you want

// To talk to, you might need to uncomment the query-source

// Directive below. Previous versions of BIND always asked

// Questions using port 53, but BIND 8.1 and later use an unprivileged

// Port by default.

// Query-source address * port 53;

// If your ISP provided one or more IP addresses for stable

// Nameservers, you probably want to use them as forwarders.

// Uncomment the following block, and insert the addresses replacing

// The all-0's placeholder.

// Forwarders {

// 0.0.0.0;

//};

Auth-nxdomain no; # conform to RFC1035

};

The file/etc/bind/named. conf. local has the following content:

//

// Do any local configuration here

//

// Consider adding the 1918 zones here, if they are not used in your

// Organization

// Include "/etc/bind/zones. rfc1918 ";

[1] [2] [3] Next page

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.