Bind of DNS server in RedHat6.1

Source: Internet
Author: User
This article describes how to use bind software to set up DNS on RedHat6.1. First, yumbind. Note that bind-chroot must be installed to minimize the impact on bind when other directories of the dns server change. Secondly, bind-utils includes dig and other important debugging tools. The main bind configuration file is/etc/named. conf. If you enable simple dns in the firewall or agent, you only need to add forwardo

This article describes how to use bind software to set up DNS on RedHat 6.1.

First, yum bind.

Note that bind-chroot must be installed to minimize the impact on bind when other directories of the dns server change. Secondly, bind-utils includes dig and other important debugging tools.

The main bind configuration file is/etc/named. conf.

If you enable simple dns in the firewall or by the way, you only need to add

  1. Forward only;
  2. Forwarders {
  3.  8.8.4.4;
  4.  8.8.8.8;
  5. };

Remove ip restrictions

Listen-on port53{Any ;};

Custom internal zone File

Include"/Var/named/zones/internal/internal_zones.conf";

Add
  1. Zone"Lzy.org"IN {
  2. Type master;
  3. File"Named. lzy. me";
  4. };

Define/var/named. lzy. me

  1. $ TTL60
  2. @ In soa dns address. of. the. mail .(20120217016 H 25 M 1 W 1D)
  3. @ In ns dns
  4. Dns IN192.168.56.161
  5. Www IN172.31.0.103
  6. Mail IN172.31.0.108
  7. Www1 in cname www
  8. Www2 in cname www

Pay attention to port 53 of udp and tcp in the firewall.

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.