ahwamidi
2007-04-06, 12:58 PM
是這樣的我設定在IP分享器底下linux,可是我架設的DNS SERVER確是內網的
我在IP分享器有設定虛擬主機PORT個別是53 TCP,53 TCP,但是我用nslookup
出來的的確是我外網的IP,可是在別人電腦開啟我的網頁卻不能顯示,是怎麼回事
以下是我的設定
/etc/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 "super-heat.idv.tw" IN {
type master;
file "super-heat.idv.tw";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1";
allow-update { none; };
};
include "/etc/rndc.key";
--------------------------------------------------------------------------
/var/named/192.168.1
$TTL 86400
@ IN SOA dns.super-heat.idv.tw. root.dns.super-heat.idv.tw. (
2007040501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.super-heat.idv.tw.
IN MX 10 dns.super-heat.idv.tw
IN PTR dns.super-heat.idv.tw
--------------------------------------------------------------------------
/var/named/super-heat.idv.tw
$TTL 86400
@ IN SOA dns.super-heat.idv.tw. root.dns.super-heat.idv.tw. (
2007040501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.super-heat.idv.tw.
IN MX 10 dns.super-heat.idv.tw
IN A 192.168.1.2
dns IN A 192.168.1.2
www IN CNAME dns
mail IN CNAME dns
ftp IN CNAME dns
shopping IN CNAME dns
照理來說應該可以出外網
可是都不通
哪位高手可以告訴我
謝謝
贊助商連結
我在IP分享器有設定虛擬主機PORT個別是53 TCP,53 TCP,但是我用nslookup
出來的的確是我外網的IP,可是在別人電腦開啟我的網頁卻不能顯示,是怎麼回事
以下是我的設定
/etc/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 "super-heat.idv.tw" IN {
type master;
file "super-heat.idv.tw";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1";
allow-update { none; };
};
include "/etc/rndc.key";
--------------------------------------------------------------------------
/var/named/192.168.1
$TTL 86400
@ IN SOA dns.super-heat.idv.tw. root.dns.super-heat.idv.tw. (
2007040501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.super-heat.idv.tw.
IN MX 10 dns.super-heat.idv.tw
IN PTR dns.super-heat.idv.tw
--------------------------------------------------------------------------
/var/named/super-heat.idv.tw
$TTL 86400
@ IN SOA dns.super-heat.idv.tw. root.dns.super-heat.idv.tw. (
2007040501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.super-heat.idv.tw.
IN MX 10 dns.super-heat.idv.tw
IN A 192.168.1.2
dns IN A 192.168.1.2
www IN CNAME dns
mail IN CNAME dns
ftp IN CNAME dns
shopping IN CNAME dns
照理來說應該可以出外網
可是都不通
哪位高手可以告訴我
謝謝
贊助商連結