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

    How to forward DNS querys to another DNS server than thoose under System > General?

    Scheduled Pinned Locked Moved DHCP and DNS
    15 Posts 5 Posters 1.1k 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.
    • M
      Mats @johnpoz
      last edited by

      @johnpoz

      There is a reason why i put design between "". ;)
      I have fought against that design but No they won't change it.
      Clients can talk to external DNS servers as much as they like but thoose servers does not contain the entries needed.
      The may talk to the internal DNS as long as it's done through a proxy. Therefore the question if you can configure PFsense to act as that proxy without having to use the internal DNS for the PFsense box itself.

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

        Ok - to have pfsense be able to query an internal dns for some internal domain(s) its as simple as a domain override.. No need to setup of forwarding.. Just the domain override.

        Resolver will resolve, if you setup domain override for say intdomain.tld pointing to your internal NS when client asks pfsene for something.intdomain.tld pfsense will go ask the NS servers listed in the override, the client wont.

        Keep in mind that these internal NS must be on a different vlan than your clients or there is nothing pfsense can do sfrom stoping clients from just pointing directly to that NS.

        You will need to allow unbound to use whatever interface it needs to talk to these internal NS for outbound queries, and you will most likely need to setup whatever domains these are as private - since if they return a rfc1918 address pfsense will not hand it back to the client as a rebind. You can setup overrides for both forward and reverse zones.

        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 24.11 | Lab VMs 2.8, 24.11

        M 1 Reply Last reply Reply Quote 0
        • M
          Mats @johnpoz
          last edited by

          @johnpoz
          It's better but still not what I need since this needs to be manually maintained every time they add an internal domain.

          Pfsense is not and has never ever been involved in stopping the clients from talking to the DNS server. That's done in an upstream firewall which is completly out of my control as is the DNS design

          I need to send the DNS queris to the internal DNS server so therefore i ask again, please tell me how to do forwarding to an internal DNS server.

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

            Use the forwarder (dnsmasq) or just put unbound (resolver) in forwarding mode..

            How many freaking internal domains do they add in say a year?

            0_1536943044767_resolverforwardingmode.png

            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 24.11 | Lab VMs 2.8, 24.11

            M 1 Reply Last reply Reply Quote 0
            • M
              Mats @johnpoz
              last edited by Mats

              @johnpoz
              Sorry but as I stated earlier "They cannot use the DNS servers specified under System > General since they are external DNS servers (and need to be that) which doesn't have the internal hosts"

              Since it's Lab/dev, they do change a lot

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

                Use Bind package... You can do whatever you want there.. You can setup specific forwarders..

                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 24.11 | Lab VMs 2.8, 24.11

                M 1 Reply Last reply Reply Quote 0
                • M
                  Mats @johnpoz
                  last edited by

                  @johnpoz said in How to forward DNS querys to another DNS server than thoose under System > General?:

                  Use Bind package... You can do whatever you want there.. You can setup specific forwarders..

                  Thanks. I will dig into that. Just got to fix an interesting bug in an appliance they are testing first. Regardless of ip settings on the device, it calls google dns on 8.8.8.8

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

                    What appliance? Many an iot sort of device are hard coded for specific dns.

                    Only sort of work around is a redirect.

                    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 24.11 | Lab VMs 2.8, 24.11

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Mats @johnpoz
                      last edited by

                      @johnpoz

                      It is a type of IoT "thingy" running android but when it has a setable DNS you kind of expect it to follow that. It has been reported to the supplier as a bug

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        You will likely have to detail this "design" with a detailed diagram.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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