|
我在rh9.0里安装了bind9+apache2.0.40
我在RH9。0里nslookup www.vyouzhi.com正常
在另一台电脑WIN2K里能用IE 192。168。0。40(为RH9。0的IP)
能看到apache 的test页面
但
如果我先启动apache就会发生下面的问题
[code:1]httpd:Could not determine the server's fully qualified domain name.using 127.0.0.1 for ServerName[/code:1]
如果我先启动bind9就不会出现此情况
以下是我的bind的配置
-----------------------named.conf------------------------------
[code:1]// 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 127.0.0.1 allow { localhost; } keys { rndckey; };
};
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; };
};
zone "vyouzhi.com" IN {
type master;
file "vyouzhi.com.zone";
allow-update {none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.zone";
allow-update {none; };
};
include "/etc/rndc.key";
[/code:1]
--------------------------vyouzhi.com.zone---------------------
[code:1]$TTL 86400
@ IN SOA vyouzhi.com. root.vyouzhi.com.(
20040620;
28800;
7200;
604800;
86400;
);
@ IN NS vyouzhi.com.
localhost IN A 127.0.0.1
www IN A 192.168.0.40
[/code:1]
--------------0.168.192.zone-----------------------
[code:1]$TTL 86400
@ IN SOA vyouzhi.com. root.youzhi.com. (
20040620;
28800;
14400;
3600000;
86400;
);
@ IN NS vyouzhi.com.
40 IN PTR www.vyouzhi.com.
[/code:1]
-------------resolv.conf----------------
[code:1]domain vyouzhi.com
nameserver 192.168.0.40
search 127.0.0.1
[/code:1]
--------------------------hosts------------------
[code:1]# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.40 vyouzhi.com vyouzhi.com
[/code:1]
以下是我在apache的httpd.conf中的小部分配置
-----------------httpd.conf---------------------------
[code:1]ServerName www.vyouzhi.com
[/code:1]
-------------------dig -x 192.168.0.40返回的----------------
[code:1]
; <<>> DiG 9.2.3 <<>> -x 192.168.0.40
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 46220
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;40.0.168.192.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
0.168.192.in-addr.arpa. 86400 IN SOA vyouzhi.com. root.youzhi.com. 20040620 28800 14400 3600000 86400
;; Query time: 4 msec
;; SERVER: 192.168.0.40#53(192.168.0.40)
;; WHEN: Sat Jun 26 18:06:15 2004
;; MSG SIZE rcvd: 102
[/code:1]
-----------------------nslookup-----------------
[code:1]Server: 192.168.0.40
Address: 192.168.0.40#53
Name: www.vyouzhi.com
Address: 192.168.0.40[/code:1]
为什么不能在win2k里使用www.vyouzhi.com去流览而只能用IP地址去流览apache所做的主页呢? |
|