CentOS establishes bind service as an intranet DNS Resolution service installation record

Source: Internet
Author: User
Tags dnssec nameserver

This router does not support static domain name resolution services because the intranet has changed routers. So you can only set up a DNS service yourself.

The DNS server software chooses bind, and directly yum installs bind on-line. The other two package bind-libs,bind-utils are updated directly:

Yum-y Install bind

The installation process is not released.

After loading, configuration file:/etc/named.conf (no bind-chroot, can increase security, but the intranet is not installed)

To edit the named.conf configuration file:

 named.conf//// provided by red hat bind package to configure  the isc bind named (8)  DNS// server as a caching only  nameserver  (as a localhost dns resolver only).//// see /usr/share/doc/ bind*/sample/ for example named configuration files.//options {listen-on  PORT 53 { ANY; };LISTEN-ON-V6 PORT 53 { ::1;&NBSP,};d irectory  "/ Var/named ";d ump-file "/var/named/data/cache_dump.db ";         statistics-file  "/var/named/data/named_stats.txt";         memstatistics-file  "/var/named/data/named_mem_stats.txt";allow-query     {  any; };    //here is the query permission for the domain name. The default is localhost, which is to allow only native queries. Recursion yes;dnssec-enable yes;dnssec-validation yes;dnssec-lookaside auto;/* path to isc dlv key */bindkeys-file  " /etc/named.iscdlv.key ";managed-keys-directory "/var/named/dynamic ";}; logging {        channel default_debug {                 file  "Data/named.run" ;                 severity  dynamic;        };}; zone  "."  IN {type hint;file  "named.ca";};/ / include  "/etc/named/named.rfc1912.zones";include  "/etc/named/named.mydomain.cn.zone";     //because this file is to be used, so specify to this file include  "/etc/named.root.key";

Then look at Named.mydomain.cn.zone This file, this file is mainly to add domain information:

[Email protected] named]# more Named.mydomain.cn.zone//named.rfc1912.zones:////provided by Red Hat Caching-nameserver Package////ISC BIND named zone configuration for zones recommended by//RFC 1912 Section 4.1:localhost TLDs and Addre SS zones//and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt//(c)-R W franks// see/usr/share/doc/bind*/sample/for Example named Configuration Files.//zone "mydomain.cn" in {type Master;file "/etc/    Named/mydomain.cn.zone "; The content of this file is to parse the contents of the article Allow-update {none;};};

Contents of the Mydomain.cn.zone file:

[[email protected] named]# more mydomain.cn.zone  $TTL  1D@        IN SOA  @ rname.invalid.  (                                          0        ; serial                                          1D       ; refresh                                          1h      ; retry                                          1W       ; expire                                          3H )     ; minimum         NS      @         A         aaaa    ::1wikiina192.168.18.200    // These three are the entries I added myself to parse Pmsina192.168.18.200designinA192.168.18.200 

Online said the three before the addition of a MX, where no addition can also be successfully resolved. Added the instead of the time to start the error, so directly did not want the article.

Now modify the nameserver= on the other host (because the IP of my DNS service host is also this), and then use the Dig command to view the following:

root># dig wiki.mydomain.cn; <<>> dig  9.8.2rc1-redhat-9.8.2-0.17.rc1.el6_4.6 <<>> wiki.mydomain.cn;;  global options: +cmd;;  Got answer:;;  ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19423;;  flags: qr aa rd ra; query: 1, answer: 1, authority: 1,  ADDITIONAL: 2;;  QUESTION SECTION:;wiki.mydomain.cn.INA;;  answer section:wiki.mydomain.cn.86400ina192.168.18.200    //return the IP address correctly here;;  AUTHORITY SECTION:mydomain.cn.86400INNSmydomain.cn.;;  ADDITIONAL SECTION:mydomain.cn.86400INA192.168.18.200mydomain.cn.86400INAAAA::1;;  Query time: 0 msec;;  server: (;  WHEN: Thu Aug 20 17:01:55 2015;;  msg size  rcvd: 105

The resolution is successful here.

This article is from the "Davin" blog, make sure to keep this source http://ydw1118.blog.51cto.com/3035216/1686576

CentOS establishes bind service as an intranet DNS Resolution service installation record

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.