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

DNS Resolver Not Working/Logging

Scheduled Pinned Locked Moved DHCP and DNS
7 Posts 2 Posters 893 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.
  • J
    johnsoga
    last edited by Jan 17, 2023, 2:18 AM

    So I'm working on setting up my pfsense router for installation. So my issue is I'm not able to reach the server hogwarts.lan (its a NAS). Best I can tell everything that needs to be in place is or at the very least is so wide open so as to not be a problem. Relevant screen shots of information that might be asked is included but if there is something else that might help let me know and I can provide.

    GBookPro:~ johnsoga$ nslookup hogwarts.lan
    Server:		192.168.60.1
    Address:	192.168.60.1#53
    
    Name:	hogwarts.lan
    Address: 192.168.130.20
    
    GBookPro:~ johnsoga$ ping hogwarts.lan
    ping: cannot resolve hogwarts.lan: Unknown host
    GBookPro:~ johnsoga$ dig hogwarts.lan +trace
    
    ; <<>> DiG 9.10.6 <<>> hogwarts.lan +trace
    ;; global options: +cmd
    ;; Received 17 bytes from 192.168.60.1#53(192.168.60.1) in 69 ms
    
    GBookPro:~ johnsoga$ ifconfig en8 | grep -w inet
    	inet 192.168.60.3 netmask 0xffffff00 broadcast 192.168.60.255
    

    In trying to see where this dns lookup might be going wrong I notice that none of the looksup show up in the DNS Resolver logs and I cannot figure out how to get them to show

    Screen Shot 2023-01-16 at 9.10.40 PM.png

    Screen Shot 2023-01-16 at 9.11.37 PM.png
    Screen Shot 2023-01-16 at 9.11.45 PM.png
    Screen Shot 2023-01-16 at 9.10.57 PM.png
    Screen Shot 2023-01-16 at 9.12.02 PM.png

    S 1 Reply Last reply Jan 17, 2023, 2:44 AM Reply Quote 0
    • S
      SteveITS Galactic Empire @johnsoga
      last edited by Jan 17, 2023, 2:44 AM

      @johnsoga is Resolver listening on All interfaces?

      Nslookup working and not logging, while dig fails, sounds like it’s being cached but I don’t think it can do that on its own. Did you try restarting your client device?

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      J 2 Replies Last reply Jan 17, 2023, 2:54 AM Reply Quote 0
      • J
        johnsoga @SteveITS
        last edited by Jan 17, 2023, 2:54 AM

        @steveits haven't tried restarting the client device (macbook pro connected to caldigit hub providing Ethernet port), but I don't think that's the issue may restart if desperation hits

        1 Reply Last reply Reply Quote 0
        • J
          johnsoga
          last edited by Jan 17, 2023, 3:04 AM

          Screen Shot 2023-01-16 at 9.52.04 PM (3).png

          Decided to try a capture since I have no idea why the DNS Resolver logs on the pfSense device doesn't show logs for these local domain queries. Seemed like some like some kind permission issue or something. So I went back into the DNS Resolver setting looking for anything that seemed permission related noticed the ACL section so started poking around in there. Now I just feel stupid because its working after enabling the following:

          Screen Shot 2023-01-16 at 9.56.58 PM.png

          GBookPro:~ johnsoga$ dig hogwarts.lan
          
          ; <<>> DiG 9.10.6 <<>> hogwarts.lan
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2148
          ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
          
          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 1232
          ;; QUESTION SECTION:
          ;hogwarts.lan.			IN	A
          
          ;; ANSWER SECTION:
          hogwarts.lan.		3600	IN	A	192.168.130.20
          
          ;; Query time: 64 msec
          ;; SERVER: 192.168.60.1#53(192.168.60.1)
          ;; WHEN: Mon Jan 16 21:46:39 EST 2023
          ;; MSG SIZE  rcvd: 57
          

          I actually tried setting it to just "allow" and that didn't work. Only seems to work when using the "allow snoop" option. I assume based of the description that this is implying that dig is always by default issuing a recursive or non-recursive query? Admittedly to me the still frustrating part is that these query still doesn't show in the logs. Is it not possible to get it to record local domain queries?

          Screen Shot 2023-01-16 at 10.03.33 PM.png

          S 1 Reply Last reply Jan 17, 2023, 3:39 AM Reply Quote 0
          • J
            johnsoga @SteveITS
            last edited by Jan 17, 2023, 3:06 AM

            @steveits said in DNS Resolver Not Working/Logging:

            @johnsoga is Resolver listening on All interfaces?

            Nslookup working and not logging, while dig fails, sounds like it’s being cached but I don’t think it can do that on its own. Did you try restarting your client device?

            yup

            Screen Shot 2023-01-16 at 10.05.14 PM.png

            1 Reply Last reply Reply Quote 0
            • S
              SteveITS Galactic Empire @johnsoga
              last edited by Jan 17, 2023, 3:39 AM

              @johnsoga so it needed an ACL? Does that interface have a gateway? Internal interfaces should be allowed.
              https://docs.netgate.com/pfsense/en/latest/services/dns/resolver-acls.html

              Not sure about the log Q, sorry.

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              J 1 Reply Last reply Jan 17, 2023, 3:46 AM Reply Quote 0
              • J
                johnsoga @SteveITS
                last edited by Jan 17, 2023, 3:46 AM

                @steveits said in DNS Resolver Not Working/Logging:

                @johnsoga so it needed an ACL? Does that interface have a gateway? Internal interfaces should be allowed.
                https://docs.netgate.com/pfsense/en/latest/services/dns/resolver-acls.html

                Not sure about the log Q, sorry.

                Hmmm good catch I see what you mean from the documentation:

                "By default, IPv4 and IPv6 networks residing on internal interfaces of this firewall are permitted. Additional networks must be allowed manually."

                I would think this interface would considered internal idk how/where that configuration is made, but to answer your question, nope, no gateway.

                Screen Shot 2023-01-16 at 10.42.50 PM.png

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received