Linux DNS Configuration

Source: Internet
Author: User

1. Install bind

# install bindyum install-y bind Bind-chroot bind-utils

2. master configuration file

Vi/etc/named.conf
# modify the listener to native IPlisten-on port 172.18.0.227;}; # allow all people to access allow-query     {any;};

3. Add a Domain Configuration

Vi/etc/named.rfc1912.zones
#Domain name configuration: Forward parsing configurationZone"wanmagroup.com" inch{type Master; File"Named.wanmagroup.com.zone"; allow-update {none;};};#Reverse parsing configurationZone"0.18.172.in-addr.arpa" inch{type Master; File"Named.0.18.172.in.zone"; allow-update {none;};};

Forward parsing configuration file establishment

# forward configuration parsing file $TTL 86400@ in             SOA     @       root. (                                        0       ; serial                                        1D      ; refresh                                        1H      ; retry                                        1W      ; expire                                        3H)    ; Minimum        in      NS      @ in              A       172.18.0.227*       in       A       172.18.0.227

# Reverse Configuration parsing file $TTL 1D@ in        SOA  @ root. (                                        0       ; serial                                        1D      ; refresh                                        1H      ; retry                                        1W      ; expire                                        3H)    ; Minimum        NS      @        A       172.18.0.227

4. Check the configuration

# Check the main profile named-checkconf# Check forward profile named-checkzone wanmagroup.com Named.wanmagroup.com.zone# Check the reverse configuration file named-checkzone wanmagroup.com named.0.18.172. in. Zone

5. Start the server

# Restart Service systemctl Restart Named.service # Check Service status systemctl status  named.service-l

Linux DNS 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.