Linux bind Service (DNS) deployment Configuration

Source: Internet
Author: User
Tags mail exchange

Linux system bind service (NDS)
Brief introduction:
DNS Domain name resolution service (domain? Name? System) is a service used to resolve the relationship between the domain name and the IP address, which can be implemented with forward parsing and reverse parsing functions:

    1. Forward resolution: Find the corresponding IP address based on the hostname (domain name).
    2. Reverse resolution: Find the corresponding hostname (domain name) based on the IP address.

      The work form is also divided between the master server, the slave server and the cache server.
      Primary server: Unique within a specific region, responsible for maintaining the domain name and IP address correspondence within the zone.
      From the server: Obtain the domain name and IP address from the primary server and maintain the relationship, in case the primary server is down.
      Cache server: To obtain the domain name and IP address corresponding to the other domain name resolution server query, improve the efficiency of the duplicate query.

1.rpm-qa | grep ' ^bind '//View installation package

2.yum Install bind*//installation bind service
3.systemctl start Named.service//Start service
4.NETSTAT-UTLNP | grep named//view service port
5.RPM-QL bind-9.9.4-50.el7.x86_64//View the path generated during installation
6.vim/etc/named.conf//Modify Master File

7. Add a configuration area

8. Depending on the version of the installation system, the reverse parsing file directory will change.
Cd/var/named
CP Named.localhost Linuxma.com.zone
CP Named.localhost 192.168.227.zone
Vim/etc/named.conf

Vim Linuxma.com.zone

Vim 192.168.227.zone

Note:
AAAA: for IPV6 address
NS: Name Service (domain name)
A: corresponding IP (V4)
CNAME: Modify Connection Name
MX: Mail exchange use
Forward resolving domain name---IP
Reverse resolving IP----domain names

9. Restart the service
Systemctl Restart Named.service
10. Turn off the firewall
Systemctl Stop Firewalld.service
11. Configure this level of DNS
Vim/etc/resolv.conf

12. Verification Test
nslookup----linuxma.com
DIG-T NS linuxma.com

Linux bind Service (DNS) deployment Configuration

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.