Centos Bind configuration full version

    Read

First, successfully install the Centos operating system. The latest version is Centos 6.4. Minimize the installation.

[ root@localhost named]# ifconfig -a


Set the local dns. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Yum installation: SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

######When bind chroot is installed, the configuration file is saved in the/var/named/chroot/etc/directory, which is actually a soft link. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Configuration information:

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

At this point, the DNS server can basically run. Oh, don't forget to change/etc/resolv.conf to the IP address of your own server~ Now start to create the domain and domain file. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

You can modify named.conf directly or create it under named.rfc1912.zones. I prefer to create it under named.rfc1912.zones. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Then SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Create a forward zone file named a.com.zone. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Pay attention to the second line@ IN SOA a.com admin.a.com is very important~
Then we will create a reverse zone file.
First create a reverse region in named.rfc1912.zones SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Then create a file named 192.168.1.zone. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

The basic creation is completed, and the forward and reverse directions are correct after testing. After referring to many network articles, the local configuration was successful without listing them one by one. SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Oh, yes. Don't forget to open TCP and UDP 53 ports of the firewall!!
[ root@localhost ~]# vi /etc/sysconfig/iptables
Add the following: SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

SourceByrd's Weblog- https://note.t4x.org/system/centos-bind-config/

Full version: https://note.t4x.org/service/configuration-intelligence-dns-bases/

reference resources: Non existing domain solution
Reference:( Centos Secondary DNS Configuration )

Reference articles are as follows:
1: http://dns-learning.twnic.net.tw/dns/main.html
2: http://www.linuxidc.com/ I have read all the articles related to bind below this website
3: http://blog.sina.com.cn/s/blog_bd846d6e0101dw5q.html
4: http://yuanbin.blog.51cto.com/363003/108578/
5: http://docs.oracle.com/cd/E24847_01/html/E22302/dnsref-13.html
6: http://www.chinaz.com/web/2011/0513/179982.shtml

Statement: This article is original by BYRD (based on Centos6.4 X64), and reprinting without permission is prohibited!

Statement: unless otherwise specified Byrd's Blog The content is original. Reproduction without permission is prohibited! For details, please read Copyright Statement !
 Byrd
  • by Published on August 4, 2013
  • Original link: https://note.t4x.org/system/centos-bind-config/
Comments   two    Guest   zero    Pingback   two
 anonymous

Comment

Anonymous

 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen: