DNS Lookups failing

  • Hello All,

    I am trying to figure out why DNS lookups are failing as I was trying to configure OpenDNS to be the default server.

    Here's a screenshot from the diagnostics screen:


    It looks like anything but gives no response, even

    Any ideas as to why this may be happening?

    Thanks in advance.

  • @pmrozik said in DNS Lookups failing:

    Any ideas as to why this may be happening?


    When I use and it worked right away :


    I didn't create a OpenDNS account needed to activate their DNS.

    I had to activate these :


    I advise you to use the default Resolver mode - I'm using it for yerars now, and works very well.
    Bonus : no need to mess up with DNS, no need to set what so ever.
    (I never use the forwarding mode).

  • I am using 2.4.4-RELEASE (amd64) and it is already in Resolver mode as you suggest. Initially I thought it was an issue with OpenDNS after having gone through this guide: https://disloops.com/opendns-on-pfsense/

    Then I tried another DNS provider, and as you can see, even isn't working.

    It looks like I will most likely have to go through a reinstall, especially since I've discovered a whole other issue with the package installer.

    Thanks a lot for your input Gertjan.

  • LAYER 8 Global Moderator

    Not sure why you think if your using unbound in resolver mode any of that makes any matter.. If your using unbound as resolver then what dns you have setup in general has zero to do with anything.. Other than what pfsense would use to lookup something..

    If using resolver, then the only thing pfsense should point to for dns is itself (

    I am thinking you don't actually understand what a resolver is, and how it differs from forwarding mode?

  • Thanks for the reply @johnpoz . I am definitely not an expert, but I need Unbound in Forwarding Mode as I would like to use OpenDNS filters.

    "Enable Forwarding Mode: Controls whether Unbound will query root servers directly (unchecked, disabled) or if queries will be forwarded to the upstream DNS servers defined under System > General or those obtained by DHCP/PPPoE/etc (checked, enabled)."
    Source: https://docs.netgate.com/pfsense/en/latest/dns/unbound-dns-resolver.html

    I am getting around the whole issue by assigning OpenDNS as the default DNS server via DHCP, but there is an issue with resolving on the box as well as with the repository itself:


    I think a reinstall is probably the best solution as I've had no luck with this guide:

  • LAYER 8 Global Moderator

    You sure its a database issue or a resolving issue? Looks to be a dns related problem.

    it is already in Resolver mode as you suggest.

    Then its not forwarding..

    but I need Unbound in Forwarding Mode

    Which is it?? You can not do both!!

    Well kind of you can ;) You could have a domain override that forwards for specific domains.

    I you want to use "forwarding mode" you have 2 choices - use resolver in "forwarding mode" or use dnsmasq - ie the forwarder and not unbound.

    dnsmasq has an advantage if forwarding in that it can forward to ALL your listed NS, and use the fastest reply.

    Eitherway no matter what mode you use - pfsense should really only point to itself for dns..So it can resolve and host overrides you put in place.. And use the cache..

    Why don't you paste up exactly what you have configured and we can work out your issue.

  • I didn't do a lot of research - reading the OpenDNS doc, but right now I'm not sure if OpenDNS supports "DNS over TLS".
    See here : last message https://support.opendns.com/hc/en-us/community/posts/115019265903-DNS-over-TLS.
    So be careful about TLS here.

    I just threw in


    and activated Unbound's Forwarding mode, like this :


    The rest was Ok direct :


    Note : I did not test with TLS !! Just plain DNS forwarding.

    It took me 30 seconds to set it up ....

    Btw : Of course, I have a OpenDNS account setup correctly, and running - They have my WAN IP, so they will accept my DNS, and answer.

    This morning I tested Google "gimeyourdata!!" DNS servers, worked also just fine.

    It's time you tell use what you did wrong, so we can tell you what you did wrong.
    This ought to work.

    @pmrozik said in DNS Lookups failing:

    well as with the repository itself:

    Oh, even pfSense itself has no DNS any more.

    That's normal : as soon a people start typing they have this right afterwards :


    Google should use another IPv4 like, it's far more appropriate.
    .... Hummm : I do understand know the ...

  • @johnpoz

    After reading your post I turned on dnsmasq with these the following settings:


    Still not resolving:


    I then turned off the forwarder and tried unbound with the following settings:


    Still broken.

    @Gertjan I think that it was perhaps being used as a toaster? NextGen Toaster with an IP address?

  • LAYER 8 Global Moderator

    So can you directly query these other ns with say dig or nslookup? What does the LOG say when you ask pfsense something..

    Maybe your isp only allows access to

    Do a simple query from a client to

    $ dig @ www.google.com                                                   
    ; <<>> DiG 9.14.2 <<>> @ www.google.com                                  
    ; (1 server found)                                                              
    ;; global options: +cmd                                                         
    ;; Got answer:                                                                  
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64095                       
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1            
    ;; OPT PSEUDOSECTION:                                                           
    ; EDNS: version: 0, flags:; udp: 512                                            
    ;; QUESTION SECTION:                                                            
    ;www.google.com.                        IN      A                               
    ;; ANSWER SECTION:                                                              
    www.google.com.         237     IN      A                    
    ;; Query time: 14 msec                                                          
    ;; SERVER:                                                  
    ;; WHEN: Wed Jun 05 05:42:48 Central Daylight Time 2019                         
    ;; MSG SIZE  rcvd: 59                                                           

  • Just to motivate you :

    Using a fresh install, adding and and activate Forwarding in the Resolver (or use the Forwarder) works direct.
    Same thing for OpenDNS - but you need an account, otherwise they will refuse DNS requests coming from you.

    I can't tell you from here how you managed to 'break' things ...

    Btw : asking for DNSSEC and forwarding .... that's probably a no-go and makes no sense.
    Compare your unbound settings with my unbound settings.

  • LAYER 8 Global Moderator

    @Gertjan said in DNS Lookups failing:

    Btw : asking for DNSSEC and forwarding .

    Yeah while its borked to do that.. It wouldn't stop the queries.. It just is pointless and doesn't get you anything at all..

    For dnssec to work, you either resolve yourself... Or you forward to a resolver doing it, and if that is the case no reason to ask for it.. It going to do it for you either way..

    Using forwarder, and asking for dnssec is just pointless, extra dns traffic for no reason.

  • who is the ISP. and is there network equipment in front of the pfsense router?

  • @bcruze said in DNS Lookups failing:

    who is the ISP. and is there network equipment in front of the pfsense router?

    Like a router upstream that accepts only DNS requests with it's LAN IP as destination, and no one else ? Yeah, might be possible - there are people doing the same thing with pfSEnse.

    But I guess @pmrozik administers this upstream router device as well - so, ... he would (should !?) know that.
    IF an up stream router exists ...

  • LAYER 8 Global Moderator

    The first thing I would do is validate he can actually query or not.. This is simple enough to do via dig or nslookup from any client..

    If does not get an answer - then sniff on pfsense wan and validate the query did go upstream with his public IP as source, and no answer came back, etc.

  • I just did that :

    dig @ test-domaine.fr ANY +short

    The answer came back .... and was not short. is in business today, that's for sure.

  • LAYER 8 Global Moderator

    Any is deprecated and really shouldn't be used any more. Many a site will not respond when asked for that.

    But yeah I would think something really major would have to be going on for them not to be working.. Its an anycast address so even if one region of the world was down you should get an answer from another location, etc.

    We really need some useful info from the OP if he wants our help.

Log in to reply