繼授權區的文檔,我嘗試將我的dnsmasq
伺服器聲明為該10.0.0.0/8
區域的權威伺服器(我在 10.x 中提供多個 IP 子範圍)。
不幸的是,無論我嘗試什麼,我最終都會得到
Sep 07 14:37:36 bind named[6812]: transfer of '10.in-addr.arpa/IN' from 10.100.10.254#53: connected using 10.200.0.158#57941
Sep 07 14:37:36 bind named[6812]: transfer of '10.in-addr.arpa/IN' from 10.100.10.254#53: failed while receiving responses: SERVFAIL
Sep 07 14:37:36 bind named[6812]: transfer of '10.in-addr.arpa/IN' from 10.100.10.254#53: Transfer status: SERVFAIL
Sep 07 14:37:36 bind named[6812]: transfer of '10.in-addr.arpa/IN' from 10.100.10.254#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.001 secs (0 bytes/sec)
在輔助 BIND 伺服器上(直接區域傳輸正常)。
我應該如何設定這個?
整個目前設定檔dnsmasq
:
no-resolv
no-poll
server=1.1.1.1
server=8.8.4.4
expand-hosts
domain=example.com
domain-needed
auth-server=example.com,lan0,br0
auth-zone=example.com,10.0.0.0/8,lan0,br0
auth-sec-servers=rpi1,bind
dhcp-range=10.100.10.1,10.100.10.230,240h
dhcp-range=10.100.20.1,10.100.20.230,240h
(... more DHCP ranges ...)
dhcp-option=option:ntp-server,129.104.30.42,195.220.194.193
dhcp-option=option:dns-server,10.100.10.30,10.200.0.158
dhcp-authoritative
輔助BIND伺服器的配置:
zone "example.com" {
type slave;
masters { 10.100.10.254; };
file "/etc/bind/db.example.com";
};
zone "10.in-addr.arpa" {
type slave;
masters { 10.100.10.254; };
file "/etc/bind/db.10";
};
答案1
使用建議的補丁進行清理編輯
這還不可能,所以我創建了一個叉作為提議的補丁西蒙凱利的官方儲存庫來解決這個問題。請嘗試!
目前,雖然dnsmasq
創造和單獨服務必要的PTR
記錄,並提供正確的SOA
和IN
記錄0.0.0.in-addr.arpa
,給定行:
auth-zone=example.com,10.0.0.0/8,lan0,br0
它根本不會傳輸整個區域。
如果聲明的auth-zone=0.0.10.in-addr.arpa
話會輸出亂碼區。
手冊頁中的註釋:
Note that at present, reverse (in-addr.arpa and ip6.arpa) zones are
not available in zone transfers, so there is no point arranging
secondary servers for reverse lookups.