Centos-based bind installation Configuration

Source: Internet
Author: User
Tags dnssec
Install bind: yuminstallbind * www.2cto.com Based on centos 6.3minimal. configure dns forwarding vi/etc/named in the conf file. add forwarders {8.8.8.8; 202 to conf. 96...
Centos-based bind installation configuration install bind: yum install bind * www.2cto.com Based on centos6.3 minimal version modify named. configure dns forwarding vi/etc/named in the conf file. add forwarders {8.8.8.8; 202.96.128.68 ;}; www.2cto.com to the conf file vi/etc/named. conf add zone "test.com" IN {type slave; file "test.com. zone "; masters {192.168.100.2 ;};}; zone" 100.168.192.in-addr. arpa "IN {type slave; file" 192.168.100.zone "; masters {192.168.100.2 ;};}; the configuration here is slave. Do not create a parsing region file manually. Just run the following command: chown named: named/var/named after the named service is restarted, the named service named restart www.2cto.com will be automatically created under/var/named. conf file content // 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 {127.0.0.1;}; listen-on-v6 port 53 {: 1 ;}; directory "/var/named "; dump-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 {localhost;}; recursion yes; forwarders {8.8.8.8; 202.96.128.68;}; 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 ";}; zone" test.com "IN {type slave; file" test.com. zone "; masters {192.168.100.2 ;};}; zone" 100.168.192.in-addr. arpa "IN {type slave; file" 192.168.100.zone "; masters {192.168.100.2 ;};}; include"/etc/named. rfc1912.zones "; include"/etc/named. root. key "; view the resolved region file after synchronization/var/named/test.com. zone and/var/named/192.168.100.zone test.com. zone file content: $ ORIGIN. $ TTL 3600; 1 hourtest.com in soa dns-wins. hostmaster. (135; serial 900; refresh (15 minutes) 600; retry (10 minutes) 86400; expire (1 day) 3600; minimum (1 hour) NS nms.test.com. NS testdns.test.com. NS dns-wins.test.com. $ ORIGIN gzluogang.edu.cn. * A 192.168.100.18127 A 192.168.100.55aedd A 192.168.100.56dns-wins A 192.168.100.11eaa A 192.168.100.54fendd A 192.168.100.31yontu CNAME lgjk.com www.2cto.com 192.168.100.zone file content: $ ORIGIN. $ TTL 3600; 1 hour100.168.192.in-addr. arpa in soa dns-wins. hostmaster. (132; serial 900; refresh (15 minutes) 600; retry (10 minutes) 86400; expire (1 day) 3600; minimum (1 hour) NS na.test.com. NS dns-wins.test.com. NS testdns.test.com. $ ORIGIN 100.168.192.in-addr. arpa.11 PTR dns-wins.test.com.123 PTR naou.test.com. 15 PTR db.test.com. 18 PTR yunzunx.test.com. PTR jybb.test.com. PTR www1.test.com. 19 PTR kse.test.com. 31 PTR xk1_test.com. $ ORIGIN test.com. dns-wins A 192.168.100.11na A 192.168.100.123testdns A 192.168.100.69 www.2cto.com if the configured master, you need to manually create A forward resolution region file and reverse resolution region file cd/var/namedtouch test.com. zonetouch 192.168.100.zone: more/var/log/messagesmore/var/named/data/name. run

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.