youyi1996
V2EX  ›  问与答

搭建 Active Directory 后,内部 DNS 与外部 DNS 配合的最佳做法是?

  •  
  •   youyi1996 · Aug 2, 2021 · 1730 views
    This topic created in 1755 days ago, the information mentioned may be changed or developed.
    例如,公司持有 example.com ,使用了 dnspod 解析到一些云服务器上(例如 public.example.com->x.x.x.x )。现在使用 example.com 在内网搭建 AD,但 AD 会在内网部署 DNS 服务,导致所有加入域的计算机都必须使用内网 DNS,而原先在 dnspod 上配置的指向云服务器的记录( public.example.com )并不能被查询到。现在的做法是手动将两边的记录保持一致,但感觉不是长久之计,有什么方法可以优化这一过程?

    另外,公司只有动态拨号的公网 IP,没有固定 IP 出口。
    2 replies    2021-08-02 22:36:58 +08:00
    zerohzd
        1
    zerohzd  
       Aug 2, 2021
    这个问题我很久之前也遇到过。当时做法是部署代理服务器,代理服务器用公网 DNS,客户端浏览器用插件控制代理(不改全局代理)

    但还是强烈建议内外网域名分开。部署第二套 AD,比如叫 example.local,或者再买个 example.cn 。新机器加新域,老机器等重装。手动同步两个 AD 的策略
    youyi1996
        2
    youyi1996  
    OP
       Aug 2, 2021
    @zerohzd 了解了,Google 了一圈发现基本都是建议换个域名使用,或者用二级域名。
    找到 DELL 的一篇文章: https://www.dell.com/support/kbdoc/zh-cn/000134402/dns-considerations-in-a-windows-environment-with-identical-internal-and-external-domain-names?lang=en
    看来最好还是找时间重新搭一遍 AD 了……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:47 · PVG 21:47 · LAX 06:47 · JFK 09:47
    ♥ Do have faith in what you're doing.