CentOS bind service base and domain Master server configuration

Source: Internet
Author: User

System Information:

2.6. el6.i686 #16: £ º i686 i686  i386 Gnu/linux

Because watching is linuxcast video, it will intercept some of the pictures on the video to help understand

Start Step:

1. Install bind

Yum install-y bind Bind-chroot bind-utils

Zone file is the information that holds DNS

2. Copy the template configuration information in the Bind file folder to /var/named/chroot/etc and /var/named/chroot/var in

3, the configuration steps are as follows

The first step:

At this time bind has configuration information, go to modify /var/named/chroot/etc/named.conf configuration information.

The following information is configured:

/*Sample named.conf bind DNS server ' named ' configuration file for the Red Hat BIND distribution. See the BIND Administrator ' s Reference Manual (ARM) for details, in:file:///usr/share/doc/bind-{version}/arm/bv9arm.htm L Also See the BIND Configuration GUI:/usr/bin/system-config-bind and its manual.*/options{//Put files that named are allowed to write in the data/directory:Directory"/var/named";//"Working" directoryListen-on Port -{127.0.0.1; }; Configure this machine as a server, if not native, you can change the 127.0.0.1 to another IP address listen-ON-V6 Port -{ ::1; }; DNS uses UDP, TCP protocol by default, using port number of Domin, 953 (MDC)};zone"linuxcast.net"{type Master; File"Linuxcast.net.zone";};

which

" linuxcast.net " {        type master;         " Linuxcast.net.zone " ;};

We added the original file to remove more configuration, because we are now configuring a master server, so the above information is sufficient.

type master; Configuring the server as the primary server

file "linuxcast.net.zone"; The generic zone file is named the domain name and ends with a. Zone.

Step Two:

Note that the configuration file name generated by the copy named.localhost file must be the same as the name of file in named.conf.

The file information in the Named.localhost is:

$TTL 1d@    In SOA    @ rname.invalid. (                    0    ; serial                    1D    ; refresh                    1H    ; retry                    1W    ; expire                    3H)    ; minimum    NS    @    A    127.0.  0.1    AAAA    ::1

TTL 1D is the time to live

0     ; serial                    1D    ; refresh                    1H    ; retry                    1W    ; expire                    3H)    minimum

To refresh information primarily from the server's configuration, that is, the information from the server is different from that of the primary server, then the information from the server should be refreshed in a timely manner.

NS    @ A    127.0.  0.1  AAAA    ::1

Is the configured address information, which is configured in the native

We add the following information at the end of the Linuxcast.net.zone

       Ten         mail.linuxcast.net.   Set the mail domain name, note that this line must be in front of the following two lines, otherwise cannot resolve to the mail domain name www in    A    192.168.  1.111//Here is the server address, the IP address set here is arbitrarily fixed mail in    A    192.168.  2.222//The email address is defined here

The above information explains:

At this point, we also need to make /var/named/chroot/var/named have Read permissions, you can use chmod +r/var/named/chroot /var/named/* command

At this point we make SELinux the state of Permissive ,

Setenforce is a Linux selinux firewall configuration command that executes Setenforce 0 to turn off the SELinux firewall.
The Setenforce command is the word set (set) and enforce (execute) ligatures, and another command Getenforce can view the status of SELinux.

Step Three:

All other information in the /etc/resolv.conf is deleted and configured as:

127.0. 0.1

At this point we use the host www.linuxcast.net to verify the configuration, at this time, even if there is already www.linuxcast.net This domain name, we also point to this machine

The output information is:

192.168. 1.111

We also configured the message log when configured, we can use dig-t mx linuxcast.net to query information

4, check the configuration

CentOS bind service base and domain Master server 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.