小弟是Linux新手,現有網路都是在local network,
想先在區域上先架架看,
假設小弟申請了一個domain Name 叫 test.edu.tw
and 我的主機名字叫sunlinux ,
IP 為140.123.111.119
但是都不成功,所以求救於大家啦~~
現只想網路上其他的機器,可以連到or ping 到
www.test.edu.tw
這一台.named.conf如下
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;
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "test.edu.tw" {
notify yes;
type master;
file
"named.test.edu.tw";
};
~~~~~named.test.edu.tw
; File: /var/named/named.test.edu.tw
; This is the master sub-net for siyongc.domain, but not the only one.
$TTL 86400
@ IN SOA
sunlinux.test.edu.tw.
root.sunlinux.test.edu.tw. (
2000032701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ; Minimum
)
IN NS
sunlinux.test.edu.tw.
IN
A 140.123.111.119
;
sunlinux IN A 140.123.111.119
;
www IN CNAME sunlinux