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

    Resolve IP Addresses from different LAN

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 5 Posters 1.7k Views
    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.
    • S Offline
      Shine
      last edited by

      hi,

      out network has about 10 LAN. Each LAN has it own pfsense router with DNS/DHCP

      It looks like

      
                  +--------------------------+--------------------------+---------------......
                  |                          |                          |
                  |   192.168.254.1          |   192.168.254.2          |   192.168.254.3
            .-----+-----.              .-----+-----.              .-----+-----.
            |  pfSense  |              |  pfSense  |              |  pfSense  |
            '-----+-----'              '-----+-----'              '-----+-----'
                  |   192.168.1.254          |   192.168.2.254          |   192.168.3.254
                  |                          |                          |
           Abt. 1 | 192.168.1.0/24    Abt. 2 | 192.168.2.0/24    Abt. 3 | 192.168.3.0/24
                  |                          |                          |
            .-----+------.             .-----+------.             .-----+------.
            | LAN-Switch |             | LAN-Switch |             | LAN-Switch |
            '-----+------'             '-----+------'             '-----+------'
                  |                          |                          |
            ...---+---...              ...---+---...              ...---+---...
      	(Clients/Servers)          (Clients/Servers)          (Clients/Servers)
      
      

      Every pfSense router knows the IP address und DNS-Name from the direct connected Client. So it is no problem to resolve an IP address with a client that belongs to LAN1 from a client belongs to LAN1 too.
      If you try to resolve an IP from a LAN3-client with a client in LAN1, you get a "Non-existent domain" error message from the DNS server.

      Is it possible that every pfsense router gets the DNS content from the others, so every client can resolve the IP from all clients on the whole network?

      best regards
      Shine

      1 Reply Last reply Reply Quote 0
      • johnpozJ Online
        johnpoz LAYER 8 Global Moderator
        last edited by

        They know it because they are dhcp clients to that pfsense.  Or that you created records for them in host over rides?

        If you want full dns for your entire network, then run dns for you entire network.

        Are you running active directory in this network?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • jahonixJ Offline
          jahonix
          last edited by

          What's the reason to split pfSense in multiple installs vs. one big box with multiple subnets?

          1 Reply Last reply Reply Quote 0
          • johnpozJ Online
            johnpoz LAYER 8 Global Moderator
            last edited by

            ^ agreed seems like a odd ball sort of setup.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 25.07.1 | Lab VMs 2.8.1, 25.07.1

            1 Reply Last reply Reply Quote 0
            • jahonixJ Offline
              jahonix
              last edited by

              I'm not judging, just asking!  :D  There might be a reason for it which is neither written nor sketched.

              1 Reply Last reply Reply Quote 0
              • johnpozJ Online
                johnpoz LAYER 8 Global Moderator
                last edited by

                Sure there was a reason for it..  Are those pfsense doing nat?  or just routing.. Access between segments going to be a pain if natting, etc.

                If there is a reason to do it that way, makes his name resolution a PITA if wants to use dns inside pfsense to resolve other segments.  Not designed for any sort of dns xfer, etc. etc.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 25.07.1 | Lab VMs 2.8.1, 25.07.1

                1 Reply Last reply Reply Quote 0
                • jimpJ Offline
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  If you give them all different domain names, setup domain overrides in pfSense to forward those domains to the other firewalls, and add the other domains to your domain search list on the clients then it should all work out.

                  Note that the search domains can't be sent via DHCP to Windows clients (a limitation of Windows!), but you can set it manually.

                  It would always work with fully qualified (not short) domain names.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Shine
                    last edited by

                    hi,

                    there is only one domain name on the entire network, no NAT just routing.

                    regards
                    Shine

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      phil.davis
                      last edited by

                      there is only one domain name on the entire network, no NAT just routing.

                      Then you can't use domain overrides to refer lookups sensibly to one of the other pfSense. In your setup there is no DNS instance that has full knowledge of all the names in the domain.
                      Thus you need to run some separate DNS server that is authoritative for the domain and comes to know all the names in the domain.

                      If you put each pfSense and associated LAN in a different sub-domain then it would be easy to setup like JimP posted.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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