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

    How to make unbound respond to query type any

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 2.2k 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.
    • awebsterA
      awebster
      last edited by

      Is there a way to tell unbound to respond to query type any?

      For example, if I create a host override entry for host.test.local with IP 10.1.1.1, I get an empty response when I use "dig @pfsense host.test.local any".
      However, if I use "dig @pfsense host.test.local a", it returns the expected response.

      Thanks!

      –A.

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

        Prob not since its not an authoritative nameserver.. Use bind if you need authoritative..

        You might see ANY go away as a query type anyway
        https://blog.cloudflare.com/deprecating-dns-any-meta-query-type/

        Also ANY command used in dns amplification attacks. You prob see it go away completely because of that use alone - I know it sucks..  But people in general suck which is why we can never have nice things ;)

        Not something I would be looking to enable for 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

        1 Reply Last reply
        Reply Quote 0
        • awebsterA
          awebster
          last edited by

          Its not authoritative, makes sense.
          I have to disagree, as most the commentators do on the referenced article, and limiting the use of the ANY query to reply only over TCP removes the risk DNS amplification attacks as the author correctly points out.
          As a sysadmin, the use of the ANY query is the first line of troubleshooting when something's not behaving right.

          I do like the suggested workaround bash script:

          
          digany() {
          for type in A NS MD MF CNAME SOA MB MG MR NULL WKS PTR HINFO MINFO MX TXT SRV; do
          rec=$(dig +short "$1" "$type")
          if [ ! -z "$rec" ]; then
          echo "$rec" | while read line; do
          echo -e "$line\t$type"
          done
          fi
          done
          }
          
          

          –A.

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

            yes many are limiting any queries to tcp.. But those are normally limits in something else like F5 with an irule can block the any query if udp based.

            My point being is prob going to see it go away more and more..  Like I said can not ever have anything nice because of the damn kids ;)  Use to be able to real easy monitor your ntp servers clients as well, and they took that away ;)  Shoot I use to be able to use mail servers anywhere over port 25 from my home connection.  That is gone and most isp limit you to 25 only to their servers..

            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