贊助廠商

娛樂城推薦

首頁

電腦與網際網路/其他:電腦列表

Linux- DNS 主從式設定問題

手邊有兩台 DNS Server一台 Master (簡稱為 A) 一台 Slave (簡稱為 B)原本這兩台是可以正常運作的A 修改了 Serial 之後重啟或 reload 後可以正常同步到 B原始設定檔案中沒有 acl 跟 view,但我後來把 A 上面的zone file 修改成類似這樣:acl aaa { 1.1.1.1/32; 2.2.2.2/32;};acl bbb { ! aaa; any;};view stage { match-clients { aaa; };--- 中略 --- zone "bbbaaa.com" { type master; file "data/named.ba.com.stage"; allow-transfer { B_IP; }; notify yes; also-notify { B_IP; }; }; zone "bbbaaa.com.tw" { type master; file "data/named.ba.com.tw.stage"; allow-transfer { B_IP; }; notify yes; also-notify { B_IP; }; };};view prod { match-clients { bbb; };--- 中略 --- zone "bbbaaa.com" { type master; file "data/named.ba.com.internal"; allow-transfer { B_IP; }; notify yes; also-notify { B_IP; }; }; zone "bbbaaa.com.tw" { type master; file "data/named.ba.com.tw.internal"; allow-transfer { B_IP; }; notify yes; also-notify { B_IP; }; };};B 的設定基本上相同(換掉 type 為 slave 跟 masters { A_IP };),但重啟之後 A 原本的正反解設定都可以同步到 B,但我新增的正解檔案卻好像無法正常同步到 B,(正常應該是從 A 的 data/named.ba.com.stage 同步到 B 的slaves/named.ba.com.stage)反而系統會從 A 裏面的 data/named.ba.com.internal 同步到B 的 slaves/named.ba.com.stage ,弄了很久還是如此,不知道有沒有解?先感謝各位幫忙...--
  • 發問日期:2021-06-10 16:30:23

友站連結