|
linux FC8 下DNS的配置
进入vi /etc/named/named.conf
(正向文件) {文件的默认路径在 /var/named/chroot/var/named 下}
zone "pukai.com" IN {
type master;
file "pukai.com.db";(指定文件)
}
(反向文件)
zone "100.168.192.in-addr.arpa" IN {
type master;
file "192.168.100.db";(指定文件)
};
vi /var/named/chroot/var/named/pukai.com.db
vi /var/named/chroot/var/anmed/192.168.100.db
(pukai.com.db)
$TTL 1D
pukai.com. SOA pukai.com. root.pukai.com. (
0
1D
1H
1W
3H )
pukai.com. IN NS ftp.pukai.com.
ftp IN A 192.168.100.110
www IN A 192.168.100.110
IN MX 10 mail.pukai.com.
mail IN A 192.168.100.110
qwe IN CNAME www
(192.168.100.db)
$TTL 1D
100.168.192.in-addr.arpa. SOA pukai.com root.pukai.com. (
0
1D
1H
1W
3H )
100.168.192.in-addr.arpa. IN NS ftp.pukai.com.
110 IN PIR ftp.pukai.com.
110 IN PIR www.pukai.com.
mail IN PTR mail.pukai.com. |
|