Notes on linux DNS Configuration

Source: Internet
Author: User
For details about how to configure DNS in linux, see Linux Enterprise Application-Linux server application. 1. Note that. the conf configuration file contains "/var/named". You must grant all the file permissions in "/var/named" to named. The command is as follows: "# chown named. named/var/named /*".

2. IN "/var/log/messages", we found a prompt similar to "IN: has no NS records" to check whether the zone file is incorrectly edited, for example,/var/named/peng.com. the zone configuration is as follows:
1 $ TTL 86400
2 @ in soa peng.com. root.peng.com .(
3 42; serial (d. adams)
4 3 H; refresh
5 15 M; retry
6 W; expiry
7 1D); minimum
8 in ns dns.peng.com.
9 dns in a 192.168.10.129
10 a in a 192.168.10.200

Note that there are two decimal points ". "Be sure to fill in the decimal point in line 8th". you must also fill in the fields. Also, pay attention to the 8th rows, 9th rows, and 10 rows. If they are not in the same column, add a space in the 8th rows and add a few more spaces, so that 8, 9, and 10 are not in the same column.

After you restart named and load the rndc record, do the following:

# Service named restart
# Rndc reload
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.