Hi! i am selfhosting my services and using a DNSMasq setup to provide ad-blocking to my home network.

I was thinkering with Unbound to add a fully independent DNS resolver and not depend on Google/Adblock/Whatever upstream DNS server but i am unable to make Unbound work.

Top Level Domains (like com, org…) are resolved fine, but anything at second level doesn’t. I am using “dig” (of course i am on linux) and Unbound logging to find out what’s going on, but i am at a loss.

Could be my ISP blocking my requests? If i switch back to google DNS (for example) all works fine, but using my Unbound will only resolve TLDs and some random names. For example, it will resolve google.com but not kde.org

Edit: somehow fixed by nuking config file and starting over.

  • lemmyvore
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    5 months ago

    polito.it may not be the best example because its A records point at private IPs (192.168.x.x). Such records are often filtered by ISP DNS servers because they are used in certain kinds of attacks.

    Double check your results using DNSChecker.

    Edit: also, using just dig will not resolve all possible records related to a domain. I use a script that asks dig explicitly for a variety of record types:

    #!/bin/bash
    echo "SOA NS A AAAA MX CNAME TXT SRV DNSKEY"|\
    xargs -n1 dig +noall +answer +nocrypto "$@"|\
    sort -u -k4