centos配置dns服务器

来源:互联网 发布:温度监测软件 编辑:程序博客网 时间:2024/05/16 11:11
一、概述
1.所需软件bind,bind-chroot
2.主要配置文件/var/named/chroot/etc/named.conf,数据库文件/etc/named/chroot/var/named
3.配置文件及数据库文件的建立
4.测试
5.主从架构
二、配置
1.查看是否已经安装所需软件
   rpm -q bind bind-chroot
   若无安装,运行命令
   yum -y install bind bind-chroot
2.主要配置文件在/var/named/chroot/etc/named.conf,
   数据库文件在目录/etc/named/chroot/var/named
3.配置文件及数据库文件的建立
   cd /var/named/chroot
   a.配置文件配置过程
     cp  -p  /usr/share/doc/bind-xxxx/sample/etc/*   etc/
     vi  etc/named.conf
    
   b.数据库文件建立过程
     cp  -p  /usr/share/doc/bind-xxxx/sample/var/named/*   var/named
     cd  var/named
     cp  localhost  test.zone
     vi   test.zone
    
     cp  localhost  test.opp.zone
     vi   test.opp.zone
    
4.nslookup
  
5.主从架构
   主DNS设置
  
  从DNS设置
 
原创粉丝点击