|
发表于 2003-8-5 16:25:56
|
显示全部楼层
在/etc/named.conf 中加入:
view "internal" {
match-clients { 192.168.1.0/24; 127.0.0.0/8; };
recursion yes;
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
// my setup begin//
zone "mydomain.com" IN {
type master;
notify no;
file "in/mydomain.com";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
notify no;
file "in/mydomain.com.rev";
};
};
view "external" {
match-clients { any; };
recursion no;
zone "mydomain.com" IN {
type master;
notify no;
file "ex/mydomain.com";
};
zone "xxx.xxx.117.219.in-addr.arpa" IN {
type master;
notify no;
file "ex/mydomain.com.rev";
};
}; |
|