作家
登录

在 CentOS7.0 上搭建DNS 服务器

作者: 来源: 2017-05-16 16:04:36 阅读 我要评论

  • }; 
  •  
  • zone "." IN { 
  •         type hint; 
  •         file "named.ca"
  • }; 
  •  
  • zone "example.local" { 
  •     type master; 
  •     file "example.local.zone"
  • }; 
  •  
  • zone "0.168.192.in-addr.arpa" IN { 
  •         type master; 
  •         file "192.168.0.zone"
  • }; 
  •  
  • include "/etc/named.rfc1912.zones"
  • include "/etc/named.root.key"
  • 7、 为 example.local 域名创建转发域与反向域文件

    1. [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/data 
    2. [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/dynamic 

    a)创建转发域

    1. [root@centos7 ~]# vi /var/named/chroot/var/named/example.local.zone 

    添加如下内容并保存:

    1. ;       Addresses and other host information. 
    2. $TTL 86400 
    3. @       IN      SOA     example.local. hostmaster.example.local. ( 
    4.                                2014101901      ; Serial 
    5.                                43200      ; Refresh 
    6.                                3600       ; Retry 
    7.                                3600000    ; Expire 
    8.                                2592000 )  ; Minimum 
    9.  
    10. ;       Define the nameservers and the mail servers 
    11.  
    12.                IN      NS      ns1.example.local

        推荐阅读

        当CDN遇上对象存储:完美!

      CDN技巧在今天的收集情况下,已经是“无孔不入”。不管是热火朝天的电子商务照样蓄势待发的VR技巧,>>>详细阅读


      本文标题:在 CentOS7.0 上搭建DNS 服务器

      地址:http://www.17bianji.com/lsqh/35257.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)