- 论坛徽章:
- 0
|
1.我的zone文件:
- $TTL 86400
- @ IN SOA ns1.gentoolinux.biz. root.myblue.ws. (
- 46 ; serial
- 28800 ; refresh
- 14400 ; retry
- 3600000 ; expire
- 86400 ; ttl
- )
- myblue.ws. 14400 IN NS ns1.gentoolinux.biz.
- myblue.ws. 14400 IN NS ns2.gentoolinux.biz.
- #ns1 14400 IN 38.99.2.86
- #ns2 14400 IN 69.61.72.107
- www 14400 IN A 69.61.72.107
- ftp 14400 IN A 69.61.72.107
- mail 14400 IN A 69.61.72.107
- myblue.ws. IN A 69.61.72.107
复制代码
会不会是注销的两行出了问题?
2.我的master named.conf文件:
- //
- // named.conf for Red Hat caching-nameserver
- //
- options {
- directory "/var/named";
- dump-file "/var/named/data/cache_dump.db";
- statistics-file "/var/named/data/named_stats.txt";
- /*
- * 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 "localdomain" IN {
- type master;
- file "localdomain.zone";
- allow-update { none; };
- };
- 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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
- type master;
- file "named.ip6.local";
- allow-update { none; };
- };
- zone "255.in-addr.arpa" IN {
- type master;
- file "named.broadcast";
- allow-update { none; };
- };
- zone "0.in-addr.arpa" IN {
- type master;
- file "named.zero";
- allow-update { none; };
- };
- zone "gentoolinux.biz" IN {
- type master;
- file "/var/named/gentoolinux.biz.zone";
- allow-update { none; };
- };
- zone "myblue.ws" IN {
- type master;
- file "/var/named/myblue.ws.zone";
- allow-update { none; };
- };
- zone "imissu.info" IN {
- type master;
- file "/var/named/imissu.info.zone";
- allow-update { none; };
- };
- include "/etc/rndc.key";
复制代码
3.我的salve named.conf文件:
- options {
- directory "/var/bind";
- // uncomment the following lines to turn on DNS forwarding,
- // and change the forwarding ip address(es) :
- //forward first;
- //forwarders {
- // 123.123.123.123;
- // 123.123.123.123;
- //};
- listen-on-v6 { none; };
- listen-on { 127.0.0.1; };
- // to allow only specific hosts to use the DNS server:
- //allow-query {
- // 127.0.0.1;
- //};
- // if you have problems and are behind a firewall:
- //query-source address * port 53;
- pid-file "/var/run/named/named.pid";
- };
- // Briefly, a zone which has been declared delegation-only will be effectively
- // limited to containing NS RRs for subdomains, but no actual data beyond its
- // own apex (for example, its SOA RR and apex NS RRset). This can be used to
- // filter out "wildcard" or "synthesized" data from NAT boxes or from
- // authoritative name servers whose undelegated (in-zone) data is of no
- // interest.
- // See http://www.isc.org/products/BIND/delegation-only.html for more info
- //zone "COM" { type delegation-only; };
- //zone "NET" { type delegation-only; };
- zone "." IN {
- type hint;
- file "named.ca";
- };
- zone "localhost" IN {
- type master;
- file "pri/localhost.zone";
- allow-update { none; };
- notify no;
- };
- zone "127.in-addr.arpa" IN {
- type master;
- file "pri/127.zone";
- allow-update { none; };
- notify no;
- };
- zone "gentoolinux.biz" IN {
- type slave;
- masters { 38.99.2.86; };
- file "/var/named/gentoolinux.biz.zone";
- };
- zone "myblue.ws" IN {
- type slave;
- masters { 38.99.2.86; };
- file "/var/named/myblue.ws.zone";
- };
- zone "imissu.info" IN {
- type slave;
- masters { 38.99.2.86; };
- file "/var/named/imissu.info.zone";
- };
- include "/etc/bind/rndc.key";
复制代码
master用的CENTOS 4.3的VPS,slave用的Gentoo Linux 2006.0
4.dig我的域名出现这样的输出:
- miyu@imissu /var/named $ dig www.myblue.ws
- ; <<>> DiG 9.3.2 <<>> www.myblue.ws
- ;; global options: printcmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37203
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
- ;; QUESTION SECTION:
- ;www.myblue.ws. IN A
- ;; Query time: 228 msec
- ;; SERVER: 38.99.2.86#53(38.99.2.86)
- ;; WHEN: Sat Sep 9 10:35:29 2006
- ;; MSG SIZE rcvd: 31
复制代码
大家帮我看看什么问题好吗? |
|