*奇想西卡*

« [FreeBSD] VirtualHost虛擬主機 apache with dns | Main | 爭執 »

22 九月, 2005

[freebsd] Bind8 設定檔

Freebsd — 作者 segaa @ 15:58
單純將設定檔備分到網誌上,不過話說回來如果主機掛了,這網誌應該也不存在了 Orz

1.name.conf

options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
query-source address * port 53;
version "Welcome_to_segaa.idv.tw";

};

zone "." {
type hint;
file "/etc/namedb/db.cache";
};

controls {/* empty */}; // -- $#(O%N rndc.key


zone "segaa.idv.tw"
{
type master;
file "named.segaa";
allow-transfer {168.95.192.3; 168.95.1.2; 168.95.1.1 ; 139.175.55.244; 203.72.0.3; 140.123.1.2;};
};


server 168.95.1.2 {
transfer-format one-answer;
};

server 168.95.192.3 {
transfer-format one-answer;
};

2.name.segaa 正解設定檔

$ttl 38400
segaa.idv.tw. IN SOA segaa.idv.tw. segaa.segaa.idv.tw. (
1105252945
7200
7200
1209600
86400 )
IN NS 220.130.104.15
IN MX 10 segaa.idv.tw.
IN MX 20 mail.segaa.idv.tw.
segaa.idv.tw. IN A 220.130.104.15
www.segaa.idv.tw. IN A 220.130.104.14
ftp.segaa.idv.tw. IN A 220.130.104.13
bbs.segaa.idv.tw. IN CNAME segaa.idv.tw.
mail.segaa.idv.tw. IN CNAME segaa.idv.tw.
mrtg.segaa.idv.tw. IN CNAME segaa.idv.tw.
virus.segaa.idv.tw. IN CNAME www.segaa.idv.tw.
dns.segaa.idv.tw. IN CNAME segaa.idv.tw.
jkl.segaa.idv.tw. IN A 220.134.142.80
cs.segaa.idv.tw. IN CNAME ftp.segaa.idv.tw.
photo.segaa.idv.tw. IN CNAME segaa.idv.tw.
*.segaa.idv.tw. IN CNAME segaa.idv.tw.


« [FreeBSD] VirtualHost虛擬主機 apache with dns | Main | 爭執 »

迴響


發表迴響






Powered by LifeType