Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    DNS Resolver - Domain with Multiple IP's (Round Robin)

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 3 Posters 7.1k Views 3 Watching
    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.
    • H
      Hass
      last edited by

      I currently have dnsmasq running on a VM with a Round Robin configuration and it works great as it provides a list of IP's and changes the order on every request. So providing a basic level of load balancing without the impact of putting a load balancer in front.

      I'm trying to move this to our DNS Resolver running on pfSense. I saw in a 2016 post from @johnpoz that the only way to get a list of IP's for a given name in DNS Resolver was to leverage the custom option and do something like this:

      Extract from post:
      server:
      local-data: "host.example.com A 10.10.10.1"
      local-data: "host.example.com A 10.10.10.2"
      local-data: "host.example.com A 10.10.10.3"

      However as far as I can tell the order never changes. Does anyone know if this possible to get this feature that dnsmasq (DNS Forwarder) supports in DNS resolver?

      Thanks

      Hass

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

        Not sure when I wrote that.. do you still happen to have link to that old thread handy?

        If I am not mistaken its not really the requirement of ns to return them in random order, when more than one RR is returned the client should randomly pick one.. A while back unbound did not even have an option to set that... But in one of updates they did add
        rrset-roundrobin:

        Which default to no... So if you set it to yes.. Then you can then get it to hand out random

        I just validated this
        validate.png

        then when you query you get back random order.

        $ dig @192.168.9.253 host.example.com +short
        10.10.10.1
        10.10.10.2
        10.10.10.3
        
        $ dig @192.168.9.253 host.example.com +short
        10.10.10.3
        10.10.10.1
        10.10.10.2
        
        $ dig @192.168.9.253 host.example.com +short
        10.10.10.1
        10.10.10.2
        10.10.10.3
        
        $ dig @192.168.9.253 host.example.com +short
        10.10.10.2
        10.10.10.3
        10.10.10.1
        

        Hope that helps!

        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 26.07 | Lab VMs 2.9.0, 26.07

        1 Reply Last reply
        Reply Quote 0
        • KOMK
          KOM
          last edited by KOM

          Unbound examples I see talk about this option: rrset-roundrobin: yes.

          https://forum.netgate.com/topic/120486/round-robin-for-dns-forwarder-network-address/3

          Edit: Haha you got it straight from the horses mouth.

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

            hehe - beat you too it @KOM, your too slow ;) heheheh

            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 26.07 | Lab VMs 2.9.0, 26.07

            1 Reply Last reply
            Reply Quote 0
            • KOMK
              KOM
              last edited by

              What can I say, I'm old.

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

                heheeh - you older than me? I turn the big double nickel here in 6 short months :( Only good thing is going to be able to get some senior discounts... The track is half price to get in for GA ;) 4 bucks vs 8... hehehe

                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 26.07 | Lab VMs 2.9.0, 26.07

                1 Reply Last reply
                Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  53 in October.

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

                    So not far behind - us old guys need to stick together :)

                    edit:
                    Maybe we should start a older than 50 group here.. I am really curious how many of the regs are of a mature age ;) Lucky for us 60 is the new thirty ;) I sure and the F do not feel like mid 50's that is for damn sure..

                    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 26.07 | Lab VMs 2.9.0, 26.07

                    KOMK 1 Reply Last reply
                    Reply Quote 0
                    • H
                      Hass
                      last edited by

                      Thank you all,

                      @johnpoz for reference this is the link I was referring to:
                      https://forum.netgate.com/topic/98580/services-dns-resolver-add-host-override-with-multiple-ip-addresses/4

                      I found the rrset-roundrobin: yes and was worried it did more than what I wanted so didn't want to make the change on the product boxes.

                      But I have now and it's working a treat!

                      Thanks

                      Hass

                      1 Reply Last reply
                      Reply Quote 0
                      • KOMK
                        KOM @johnpoz
                        last edited by

                        @johnpoz a53d8b422310ad8b0eecb75eb66c89cd.jpg

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

                          Wow that was back from 2016 ;) nice that still came in useful.. And now we have the new info with the round robin.. Glad it worked out for you and I could be of help..

                          Yup thats us old guys bitchin at the users from the balcony - heheeh ;)

                          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 26.07 | Lab VMs 2.9.0, 26.07

                          1 Reply Last reply
                          Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post
                          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                          Privacy Policy · Cookie Policy