黑基网 首页 服务器 Linux 查看内容

CentOS系统DNS安装及配置

2011-6-20 10:22| 投稿: Linux

摘要:   一:安装软件  yum -y install bind bind-chroot bind-libs bind-utils caching-nameserver  二:配置  cd /var/nam...
  一:安装软件  yum -y install bind bind-chroot bind-libs bind-utils caching-nameserver  二:配置  cd /var/named/chroot/etc/  cp -p named.caching-nameserver.conf named.conf  options{  directory "/var/named/";  };  zone "test.com" IN{  type master;  file "test.com.zone";  };  zone "linux.com" IN{  type master;  file "linux.com.zone";  };  zone "1.168.192.in-addr.arpa" IN {  type master;  file "192.168.1.zone";  allow-update { none; };  };  cd /var/named/chroot/var/named/  cp -p localdomain.zone test.com.zone  cp -p localdomain.zone linux.com.zone  cp -p named.local 192.168.1.zone  #test.com.zone  $TTL    86400  @               IN SOA  @       root (  42              ; serial (d. adams)  3H              ; refresh  15M             ; retry  1W              ; expiry  1D )            ; minimum  IN NS           @  IN A            127.0.0.1  IN AAAA         ::1  wwwtest         IN A            192.168.1.122  dnstest         IN A            192.168.1.133  mytest3         IN A            192.168.1.144  #linux.com.zone  $TTL    86400  @               IN SOA  @       root (  42              ; serial (d. adams)  3H              ; refresh  15M             ; retry  1W              ; expiry  1D )            ; minimum  IN NS           @  IN A            127.0.0.1  IN AAAA         ::1  wwwtest         IN A            192.168.1.123  dnstest         IN A            192.168.1.134  mytest3         IN A            192.168.1.145  #192.168.1.zone  $TTL    86400  @               IN SOA  @       root (  42              ; serial (d. adams)  3H              ; refresh  15M             ; retry  1W              ; expiry  1D )            ; minimum  IN NS           @  IN A            127.0.0.1  IN AAAA         ::1  192.168.1.123   IN A            wwwtest  192.168.1.134   IN A            dnstest  192.168.1.145   IN A            mytest3  二:重新启动named服务  service named restart
小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论


新出炉

返回顶部