Linux-Bind-DNS server configuration case

Source: Internet
Author: User
Article Title: Linux-Bind-DNS server configuration case. 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.

On Linux, how can I quickly configure a DNS server? Many network administrators find it troublesome. I will summarize the following case study methods in my practice.

Case: The domain name of a certain organization is avnads.cn, the address of the www host is 192.168.1.1, and the address of the DNS server is 192.168.1.100.

Steps:

1. Install the bind software package:

# Rpm? Qa | grep bind

# Mount/mnt/cdrom

# Cd/mnt/cdrom/RedHat/RPMS

# Rpm? Ivh bind-9.2.1-16.i386.rpm

# Rpm? Ivh bind-utils-9.2.1-16.i386.rpm

# Rpm? Ivh redhat-config-bind-1.9.0-13.noarch.rpm

# Rpm? Ivh caching-nameserver-7.2.-7. noarch. rpm

2. Edit the main configuration file:

# Vi/etc/named. conf

Options {

Directory "/var/named ";

};

Controls {

Inet 127.0.0.1 allow {localhost;} keys {rndckey ;};

};

Zone "." IN {

Type hint;

File "named. ca ";

};

Zone "localhost" IN {

Type master;

File "localhost. zone ";

Allow-update {none ;};

};

Zone "0.0.127.in-addr. arpa" IN {

Type master;

File "named. local ";

};

Include "/etc/rndc. key ";

// The content below is my configuration

Zone "seogate.cn" IN {

Type master;

File "seogate.cn. hosts ";

Allow-update {none ;};

};

Zone "1.168.192.in-addr. arpa" IN {

Type master;

File "192.168.1.rev ";

Allow-update {none ;};

};

[1] [2] 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.