DNS 記錄區域之間的衝突

DNS 記錄區域之間的衝突

假設我們在 Windows dns 伺服器中設定了 Intranet.domain.local 定義的私有 IP。現在,我們將 VPN 連接到我們的母公司,並希望將他們的 Intranet.mother.com 解析為另一個私人 IP。我嘗試使用 A 記錄設定新區域“intranet.mother.com” - 工作正常,但 Intranet 開始解決此問題,因此 https://intranet 停止正常工作。如果我可以在發生衝突時將domain.local設定為更高的優先級,那麼問題就可以解決。

接下來,我嘗試在domain.local中設定新的A記錄不起作用-intranet.mother.com無法解析,只有intranet.mother.com.domain.local可以解析。

當然,我無法設定 mother.com 區域,因為我想要公共位址,例如www.mother.com外部解決。

除了為每個工作站設定主機檔案之外還有什麼解決方案嗎?

答案1

這就是 Window DNS 伺服器中的條件轉發器的用途。
之所以intranet.mother.com.domain.local解析,我猜測是附加的連接後綴,即本地domain.local.
intranet應在內部解析為 Intranet.domain.local
intranet.mother.com應保留而不附加本地後綴。
您可以使用 Wireshark 和 nslookup 進行驗證。
您可以將一個.(點)附加到域的末尾(標記根區域)以防止附加後綴。
例如intranet.mother.com.

答案2

我找到了原因和解決方法。查看:HKLM\System\CurrentControlSet\Services\TCPIP\Parameters
“SearchList”定義從左到右優先搜尋哪些網域。我所要做的就是用“domain.local,mother.com”替換“mother.com,domain.local”。

相關內容