Simple setup and configuration of bind under Linux

Source: Internet
Author: User

One

Configuration:

VMware10

CentOS 6.5

After installing the system, you can install bind directly, you can install it directly through Yum, or you can install it via RPM in ISO.

RPM-IVH  BIND-LIBS-9.8.2-0.17.RC1.EL6_4.6.X86_64.RPMRPM-IVH   bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64. RPMRPM-IVH BIND-9.8.2-0.17.RC1.EL6_4.6.X86_64.RPMRPM-IVH  bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

The last one does not, its function is to provide the bind service a disguised root directory (the/var/namned/chroot folder as the root of bind)


Second,

after installation, we'll do the configuration.

Vi/etc/named.conf
which

Listen-on Port 53 {127.0.0.1;};
IP address to the actual IP address

Allow-query     {localhost;};
the inside of the localhost changed to any, otherwise, when the test only the machine can be used, other machines with the machine to do DNS server will not be able to access

then add the following 2 zone

Zone "A.com" in {        type master;        File "A.com.zone";}; Zone "1.168.192.in-addr.arpa" in {        type master;        File "192.168.1.zone";};

write down to switch directories

Cd/var/named
set up 2 files configured in this directory: A.com.zone and 192.168.1.zone
VI A.com.zone

$TTL 600@       in       SOA    ns.a.com      admin.a.com. (                        0       ; serial                        1D      ; refresh                        1H      ; retry                        1W      ; expire                        3H)    minimum        inch      NS      NS        in      AAAA    :: 1www     in      a       192.168.1.7ns      in      a       192.168.1.250qwer    in      A       4.3.2.1alias3w to      CNAME   www
VI 192.168.1.zone
$TTL 1d@ in       SOA  a.com admin.a.com. (                                        0       ; serial                                        1D      ; refresh                                        1H      ; retry                                        1W      ; expire                                        3H)    minimum        NS      @        A       127.0.0.1        AAAA    ::     ns.a.com.7 in      ptr      alias3w.a.com

then start the bind service

Service named restart
Show Startup Success Description We've got a problem with the configuration wood .


Third,

and then you can test it on the other machine.

Windows system, the automatic access to DNS server address to use the following DNS server address, and then the preferred choice we just configured the IP of the machine, the second one can be filled with a random

Linux needs to be modified.

change the DNS server to the IP of the machine on which bind is installed .


Simple setup and configuration of bind under Linux

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.