Smart resolution of Dual-line DNS in linux

Source: Internet
Author: User
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



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

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: 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.