options
{
directory "/var/named";
};
zone "."
{
type hint;
file "named.ca";
};
zone "xxx.com.cn"
{
type master;
file "db.xxx.com.cn";
};
zone "10.168.192.in-addr.arpa"
{
type master;
file "named.192.168.10";
};
zone "0.0.127.in-addr.arpa"
{
type master;
file "named.local";
};
/named/db.xxx.com.cn
@ IN SOA xxx.com.cn. root.xxx.com.cn.(
2002121700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.xxx.com.cn.
xxx.com.cn. IN A 192.168.10.19
ns.xxx.com.cn. IN A 192..168.10.18
www.xxx.com.cn. IN A 192.168.10.19
/var/named/named.192.168.10
@ IN SOA xxx.com.cn. root.xxx.com.cn.(
2002121700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.xxx.com.cn.
18 IN PTR ns.xxx.com.cn.
19 IN PTR www.xxx.com.cn.
/var/named/named.local
@ IN SOA localhost. root.localhost.(
2002121700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
@ IN NS localhost.
1 IN PTR localhost.
这样配置后,nslookup ns.xxx.com.cn 或 www.xxx.com.cn 都不成功.
但nslookup www.163.com却可以.
我的目的是局网域内使Aphache能够用域名服务,该怎么配置.
我的局域网ip 192.168.10.19
named.local中localhost用不用替换成自已主机名称
2002年12月23日上午08时04分31秒[root@mail root]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> server 192.168.20.1
Default server: 192.168.20.1
Address: 192.168.20.1#53
>