WEB开发网
开发学院操作系统Linux/Unix Linux下DNS服务器的搭建及区域委派 阅读

Linux下DNS服务器的搭建及区域委派

 2012-08-22 11:34:49 来源:WEB开发网   
核心提示:[root@gjp99 Server]# rpm -qip bind-9.3.6-4.P1.el5.i386.rpm[root@gjp99 Server]# rpm -ql bind*//查看安装的文件路径/etc/dbus-1/system.d/named.conf/etc/logrotate.d/named/etc
[root@gjp99 Server]# rpm -qip bind-9.3.6-4.P1.el5.i386.rpm
[root@gjp99 Server]# rpm -ql bind*  //查看安装的文件路径
/etc/dbus-1/system.d/named.conf
/etc/logrotate.d/named
/etc/named.conf
/etc/rc.d/init.d/named
/etc/rndc.conf
/etc/rndc.key
2.DNS基本配置:
[root@gjp99 Server]# cd /var/named/chroot/
[root@gjp99 chroot]# ls
dev etc var
[root@gjp99 chroot]# cd etc
[root@gjp99 etc]# ll
total 16
-rw-r--r-- 1 root root  405 Aug 2 21:30 localtime
-rw-r----- 1 root named 1230 Jul 30 2009 named.caching-nameserver.conf
-rw-r----- 1 root named 955 Jul 30 2009 named.rfc1912.zones
-rw-r----- 1 root named 113 Aug 20 19:29 rndc.key
[root@gjp99 etc]# cp -p named.caching-nameserver.conf named.conf
不加-p的话 所属组为root,服务启动不了! //拷贝样例文件
[root@gjp99 etc]# ll
total 20
-rw-r--r-- 1 root root  405 Aug 2 21:30 localtime
-rw-r----- 1 root named 1230 Jul 30 2009 named.caching-nameserver.conf
-rw-r----- 1 root named 1230 Jul 30 2009 named.conf
-rw-r----- 1 root named 955 Jul 30 2009 named.rfc1912.zones
-rw-r----- 1 root named 113 Aug 20 19:29 rndc.key
[root@gjp99 etc]# vim named.conf
options {
    listen-on port 53 { any; };   //监听端口
    listen-on-v6 port 53 { ::1; };
    directory    "/var/named";检测的真实路径:/var/named/chroot/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   { any; };  //允许查询
    allow-query-cache { any; };  //允许查询缓存
};
logging {
    channel default_debug {

上一页  1 2 3 4 5 6 7  下一页

Tags:Linux DNS 服务器

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接