How to make unbound respond to query type any



  • 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!


  • LAYER 8 Global Moderator

    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..



  • 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
    }
    
    

  • LAYER 8 Global Moderator

    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..


Log in to reply