Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNS Resolver Not Resolving Some Requests

    Scheduled Pinned Locked Moved General pfSense Questions
    26 Posts 4 Posters 2.6k Views 6 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.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator @jaskerx
      last edited by johnpoz

      @jaskerx yeah I know that is default on many linux boxes, the problem is you don't actually know where the query went..

      your trace from pfsense shows it can resolve, do a directed query to pfsense. Do you get a reply? if so then its not pfsense having an issue..

      Pfsense can not make your client ask it for dns, all it can do is respond when asked or not.. But clearly looks like it is responding. Shoot the ttl on that is 12 hours.. So once it looks it up once - it wouldn't have to look it up again for 12 hours, unless unbound is being restarted.

      Why don't you look to sniff if your client is even asking dns, and if so what - and if that is answering or not? Doing a +trace isn't going to tell you were the problem is, only that is not in network connectivity on how that is resolved.

      If pfsense was unable to resolve it, then a trace would be a good test to see where in the resolve process its failing, etc.. But if pfsense can resolve it.. Then clearly that is not your problem - and traces from any other machine really are not going to help.. What is helpful is just a simple dig or nslookup or host what what your looking for.. Does the client get an IP in answer?

      $ dig www.upsbatterycenter.ca                                                   
                                                                                      
      ; <<>> DiG 9.16.42 <<>> www.upsbatterycenter.ca                                 
      ;; global options: +cmd                                                         
      ;; Got answer:                                                                  
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53798                       
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1            
                                                                                      
      ;; OPT PSEUDOSECTION:                                                           
      ; EDNS: version: 0, flags:; udp: 1232                                           
      ;; QUESTION SECTION:                                                            
      ;www.upsbatterycenter.ca.       IN      A                                       
                                                                                      
      ;; ANSWER SECTION:                                                              
      www.upsbatterycenter.ca. 41202  IN      CNAME   upsbatterycenter.ca.            
      upsbatterycenter.ca.    41202   IN      A       192.240.174.188                 
                                                                                      
      ;; Query time: 11 msec                                                          
      ;; SERVER: 192.168.3.10#53(192.168.3.10)                                        
      ;; WHEN: Sat Jul 08 10:01:42 Central Daylight Time 2023                         
      ;; MSG SIZE  rcvd: 82                                                           
      

      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 25.07 | Lab VMs 2.8, 25.07

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jaskerx @johnpoz
        last edited by

        @johnpoz Maybe this could possibly be a browser problem after all I managed to get the site to load in Firefox but when I went to Chrome it wouldn't load, I then went back to Firefox and tried to navigate the site further and it timed out again. Here is output of dig on Fedora:

        dig www.upsbatterycenter.ca
        
        ; <<>> DiG 9.18.16 <<>> www.upsbatterycenter.ca
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4765
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
        
        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 65494
        ;; QUESTION SECTION:
        ;www.upsbatterycenter.ca.	IN	A
        
        ;; ANSWER SECTION:
        www.upsbatterycenter.ca. 3914	IN	CNAME	upsbatterycenter.ca.
        upsbatterycenter.ca.	3914	IN	A	192.240.174.188
        
        ;; Query time: 0 msec
        ;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
        ;; WHEN: Sat Jul 08 09:07:52 CST 2023
        ;; MSG SIZE  rcvd: 82
        

        It's resolving so why are the browsers timing out?

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jaskerx @jaskerx
          last edited by

          Now it's working again on both browsers, I'm ready to throw up my hands and walk away from this one.

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            Reviewing; why do think this is a DNS issue at all?

            You initally stated those sites would not resolve but then you said you seeing timeout and connection refused errors, neither of which I'd associate with a DNS issue.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jaskerx @stephenw10
              last edited by

              @stephenw10 I originally assumed it was DNS because the site would fail to load on multiple Fedora pc's as well as Android phones but now I'm getting combinations of err_connection_refused, err_connection_aborted and connection has timed out errors. Got more research to do I guess.

              1 Reply Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator
                last edited by

                Are you running pfBlocker or Snort/Suricata? Anything logged as blocked there?

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jaskerx @stephenw10
                  last edited by

                  @stephenw10 That was the second place I looked but I'm not getting the pfBlocker page or the 1x1 pixel dot, and I don't see upsbatterycenter in the Reports - Alerts page. Also wouldn't explain the intermittent nature of what I have been experiencing today with this site it would just be blocked period.

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • stephenw10S Offline
                    stephenw10 Netgate Administrator
                    last edited by

                    I'd try running a pcap for 192.240.174.188 when you're trying to access it. It could just be refused at the server.

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

                      @jaskerx I would look to your client to why its failing.. DNS is just the first step in connecting to it.. But if you get that IP answer from pfsense then its not a pfsense dns issue.

                      Now it could be your client not asking pfsense? It could be as mentioned a rst from the server, could be the server just not answering?

                      I have not seen any issues loading up that site on my devices..

                      In firefox load up the dev tools when you try and access it - you should get some more details of what exactly is failing. or look at firefox actual dns cache, etc..

                      about:networking#dns

                      In firefox will show you its cache, and info on where it got it from if its using doh, etc.

                      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 25.07 | Lab VMs 2.8, 25.07

                      1 Reply Last reply Reply Quote 1
                      • JonathanLeeJ Offline
                        JonathanLee @jaskerx
                        last edited by

                        @jaskerx how do you turn of DoH on Chrome???

                        Make sure to upvote

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.