Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    如何,将同一个域名,针对不同网络接口解析成不同IP?

    Chinese
    5
    5
    5.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      leoshen
      last edited by

      The same domain name, for different network interface resolves into different IP.
      EX:a.com, resolved in LAN1 as 192.168.1.1, 192.168.2.2 resolves to the LAN2, and resolves to 192.168.3.3 in the LAN3

      同一个域名,针对不同网络接口解析成不同IP。如a.com,在LAN1中解析为192.168.1.1,在LAN2中解析为192.168.2.2,在LAN3中解析为192.168.3.3

      1 Reply Last reply Reply Quote 0
      • D
        deddey
        last edited by

        由这样的需求,你得装一个bind。
        我在pfsense上装过bind,记得有这样的功能,根据不同的请求IP回复不同的解析地址。

        1 Reply Last reply Reply Quote 0
        • F
          fever
          last edited by

          每一个网口可以定义一个dns转发器,在每一个对应网段接口的dns转发器中进行解析就可以了。

          1 Reply Last reply Reply Quote 0
          • M
            magura
            last edited by

            @fever:

            每一个网口可以定义一个dns转发器,在每一个对应网段接口的dns转发器中进行解析就可以了。

            能否詳細點的設定說明?
            因為我測試DNS forwarder找不到如何為各別LAN1 LAN2 LAN3去針對這些來源給予不同的DNS回應.

            1 Reply Last reply Reply Quote 0
            • A
              a527408965
              last edited by

              bind 可以做到,在bind中称为 view(视图)。

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.