LINUX 服务器配置大全
一: DNS 服务器的设置
1. 编辑/etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
}; !
!
// !
// a caching only nameserver config 创
// 原
controls { 非
inet allow { localhost; } keys { rndckey; };
并
}; 理
zone "." IN { 整
type hint; 人
file "named.ca"; 本
};
zone "" IN {
type master;
file "";
allow-update { none; };
};
zone "1.168.192." IN {
type master;
file ".rev";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127." IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
2. 编辑正向解析文件/var/named/
$TTL 86400
@ IN SOA . . (
1997022700 ; Serial
28800 ; Refresh !
14400 ; Retry !
3600000 ; Expire