MSIAM
V2EX  ›  问与答

Windows Server DNS 如何设置仅解析一个子域名?

  •  
  •   MSIAM · Dec 19, 2022 · 1320 views
    This topic created in 1265 days ago, the information mentioned may be changed or developed.

    如题

    我设置了一个 Example.com 的正向解析区域,并且在其中设置了一个解析值为 Example 的 A 记录 这样的话解析应该就会是 Example.Example.com 》 x.x.x.x 但是这样做的话,会导致 Example.com 这个主域名会被全部解析到 Windows DNS Server 本机上去。 请问要如何设置仅解析 Example.Example.com 这一个子域名? 这样设置的原因是这个需要解析的域名和 AD 域的主域名不是同一个。

    先感谢回复了。

    5 replies    2022-12-20 14:02:36 +08:00
    SgtPepper
        1
    SgtPepper  
       Dec 19, 2022
    你新建一个正向解析区域,属性里面的 zone transfers 或者 name servers 调试下看看能不能做到。
    SgtPepper
        2
    SgtPepper  
       Dec 19, 2022
    还有正向解析区域右击的 new delegation 试试
    MSIAM
        3
    MSIAM  
    OP
       Dec 19, 2022
    @SgtPepper 我明天拿测试机试试。多谢解答
    MSIAM
        4
    MSIAM  
    OP
       Dec 20, 2022
    @SgtPepper 解决了,似乎是我的理解问题。
    Windwos 的 DNS 的确是解析整个 Example.com 区域,但是并不是把 example.com 解析为本机。而是不做记录。
    要想给 example.com 做解析的话,只要添加一条没有名字的 A 记录就可以了。
    SgtPepper
        5
    SgtPepper  
       Dec 20, 2022
    嗯,win dns 新建 a 记录框 name 旁边括号写着“uses parent domain name if blank”
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2676 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:19 · PVG 19:19 · LAX 04:19 · JFK 07:19
    ♥ Do have faith in what you're doing.