Linux:dns Server Setup and configuration

Source: Internet
Author: User

1. Yum install-y bind Bind-chroot bind-utils

2. Edit the DNS master configuration file

vim/etc/named.conf Modify the following red places:

Options {

Listen-on Port: ( any;};

Listen-on-v6 Port 53 {:: 1;};

Directory "/var/named";

Dump-file "/var/named/data/cache_dump.db";

Statistics-file "/var/named/data/named_stats.txt";

Memstatistics-file "/var/named/data/named_mem_stats.txt";

allow-query { any;};

recursion Yes;

3. Add Domain name settings

Vim/etc/named.rfc1912.zones adds the following:

Zone "Wsmtstest.com" in {
Type master;
File "named.wsmtstest.com";
allow-update {none;};
};

4. Modify the domain name configuration file

cd/var/named/
CP Named.localhost named.wsmtstest.com
Vim named.wsmtstest.com (to be the same as the file name defined in the main configuration file [/etc/named.rfc1912.zones]), add the following at the end:

www in A 115.231.20.100

"means: www.wsmtstest.com resolves to 115.231.20.100"

5. Restart Services: Service named restart

Note When the domain name resolution is unsuccessful, review the domain name profile that you created earlier to see if you have Read permission, and if not, authorize "

Linux:dns Server Setup and configuration

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.