DNS SERVER ON LINUX
(Redhat9以下版本)
类型:System V-launched daemon
软件包:bind,bind-utils
Daemon:named
脚本:named
端口:53/udp,53/tcp
配置文件:/etc/named.conf,/var/named/*
辅助工具:bindconf,openssl,caching-nameserver
步骤:
【注意:】由于最新版本的linux都提供“笼保护”,所以上边的配置文件分别对应为:/var/named/chroot/etc/named.conf,/var/named/chroot/var/named/*
1.编辑named.conf文件:
...
zone “.“ IN {
type hint;
file “named.ca“;
allow-update { none; };
};
zone “thizlinux.com.cn“ IN {
type master;
file “thizlinux.zone“;
allow-update { none; };
zone “43.99.211.in-addr.arpa“ IN {
type master;
file “43.99.211.zone“;
allow-update { none; };
};
...
2.编辑:/var/named/chroot/etc/named.conf,/var/named/chroot/var/named/下的相关数据库文件(略)【注意:】当安装了相关bind的rpm后对应的模板文件可以找到。
3.启动服务:service named start/restart
本文地址:http://com.8s8s.com/it/it36434.htm