|
楼主 |
发表于 2003-11-13 13:59:54
|
显示全部楼层
那看来还是dns设置出错了,我也在奇怪为什么查不到dns记录,我把我的dns配置文件贴出来,大家看看哪里不太对头
named.conf
增加了如下两个zone:
zone "swqa.com" IN {
type master;
file "swqa.com.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.zone";
};
swqa.com.zone
$TTL 86400
@ IN SOA swqa-server.swqa.com. root.swqa-server.swqa.com. (
2003111104;
28800;
14400;
3600000;
0)
@ IN NS swqa-server.swqa.com.
@ IN A 192.168.0.1
@ MX 10 swqa-server.swqa.com.
swqa-server.swqa.com. IN A 192.168.0.1
swqa CNAME swqa-server.swqa.com.
www CNAME swqa-server.swqa.com.
192.168.0.zone
$TTL 86400
@ IN SOA swqa-server.swqa.com. root.swqa-server.swqa.com. (
2003111104;
10800;
3600;
604800;
86400)
IN NS swqa-server.swqa.com.
1.0.168.192.in-addr.arpa. IN PTR swqa-server.swqa.com.
dhcpd.conf
# global setting
ddns-update-style none;
option domain-name "swqa.com";
option domain-name-servers 192.168.0.1;
default-lease-time 21600;
max-lease-time 43200;
host swqa-server
{
hardware ethernet 00:02:A5:BF:EE:16;
fixed-address 192.168.0.1;
}
subnet 192.168.0.0 netmask 255.255.255.0
{
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
range 192.168.0.10 192.168.0.254;
}
服务器的名字是swqa-server |
|