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

    Pfsense does not respond to dns requests from LAN Host's

    Scheduled Pinned Locked Moved DHCP and DNS
    23 Posts 3 Posters 1.6k 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.
    • F
      frazao @Rafel S
      last edited by

      @Rafel-S said in Pfsense does not respond to dns requests from LAN Host's:

      neral DNS Resolver Options
      Enable == ✓

      what DNS query are your trying to get in the LAN network PC?
      can you resolve teste.localdomain in the PC?
      or google.com?

      1 Reply Last reply Reply Quote 1
      • F
        frazao
        last edited by

        @Rafel-S said in Pfsense does not respond to dns requests from LAN Host's:

        C Test IP in LAN side == 192.168.145.11

        why is the wireshark image have an IP 192.168.145.12... what is this?

        1 Reply Last reply Reply Quote 1
        • R
          Rafel S
          last edited by

          Sorry the 192.168.145.12 is another computer in the lan and in the 192.168.145.11 pc i can resolve google but cant resolve the teste.localdomain == 192.168.145.11

          1 Reply Last reply Reply Quote 0
          • F
            frazao
            last edited by

            look at the wireshark print.
            The dns query has 2x localdomain.

            It should be teste.localdomain.
            And its showing teste.localdomain.localdomain.

            Something must be wrong in DNS configurations. Is the PC configured to use localdomain domain?

            1 Reply Last reply Reply Quote 1
            • R
              Rafel S
              last edited by Rafel S

              PC 192.168.145.12
              DNS
              192.168.145.1
              8.8.8.8
              8.8.4.4

              PC 192.168.145.11
              DNS
              192.168.145.1

              the icmp i did is from 192.168.145.12 "ping teste.loocaldomain" in ubunto console

              im gonna try to ping teste.localdomain.loocaldomain to see what happens

              UPDATE: PC 192.168.145.11 recognize localdomain as domain and cant ping teste.localdomain

              1 Reply Last reply Reply Quote 0
              • F
                frazao
                last edited by

                at the ubuntu console try:

                nslookup
                inside de nslookup console:
                server 192.168.145.1
                teste.localdomain

                what is the result?

                1 Reply Last reply Reply Quote 1
                • R
                  Rafel S
                  last edited by

                  Result:
                  0d22d18ea2b7c6006f390263fd968735.png

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

                    Well clearly you could not talk to 145.1 on 53 then... Or its not listening..

                    BTW having your clients point to both pfsense and some outside dns is just a borked config out of the gate... google sure and the hell not going to resolve anything.localdomain -- you can never be sure which NS a client will ask when it has more than 1 listed. So if your going to point a client to more than 1 NS, all of the NS need to be able to resolve the same stuff.

                    Validate your unbound is actually running..

                    And I can tell you this wrong more than likely

                    Outgoing Interfaces == LAN

                    So unbound is suppose to resolve say something.publicdomain.com via its lan interface? What would it be talking to on your lan that would allow it access to the internet to do that?

                    Vs you stating what you believe are the settings. Your host override there.. Is it actually in unbound, or do you have it maybe setup in the forwarder? But from your nslookup there you can not even ask unbound anything, or its not even running or you get back either a nx or servfail or resfused... not a timeout. Or unbound was trying to resolve something and it timed out looking for it - maybe because its trying to resolve via the lan interface? since you don't have your host override setup correctly?

                    Try resolving pfsense name for a test.. Post up your actual rules on the interface this client is on. Validate unbound is running and listening.. Validate your host override in the correct place..

                    [2.4.4-RELEASE][admin@sg4860.local.lan]/root: ps -ax | grep unbound
                    60328  -  Ss        0:51.70 /usr/local/sbin/unbound -c /var/unbound/unbound.conf
                    

                    So you can see its running from above, and here is listening on my lan IP

                    [2.4.4-RELEASE][admin@sg4860.local.lan]/root: netstat -anl | grep 192.168.9.253.53
                    tcp4       0      0 192.168.9.253.53                              *.*                                           LISTEN
                    udp4       0      0 192.168.9.253.53                              *.*                                           
                    

                    Here is host override and test of it
                    testoverride.jpg

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

                    1 Reply Last reply Reply Quote 1
                    • F
                      frazao @Rafel S
                      last edited by

                      @Rafel-S clearly the service is not running... try to see if the DNS service is actualliy running on port 53.

                      1 Reply Last reply Reply Quote 1
                      • R
                        Rafel S
                        last edited by

                        ebce0b44b6cd0062b37799ac66dfd264.png 0c751c5983e1e770310621315c80a7c1.png

                        1 Reply Last reply Reply Quote 0
                        • F
                          frazao
                          last edited by

                          @frazao said in Pfsense does not respond to dns requests from LAN Host's:

                          the DNS service is actualliy running on port 53.

                          i don't see service running. check the status menu.

                          1 Reply Last reply Reply Quote 1
                          • R
                            Rafel S
                            last edited by Rafel S

                            I started already is disabled

                            1 Reply Last reply Reply Quote 0
                            • R
                              Rafel S
                              last edited by

                              doens't let me start it

                              F 1 Reply Last reply Reply Quote 0
                              • R
                                Rafel S
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • F
                                  frazao
                                  last edited by

                                  check if dns forward is causing it to stop.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Rafel S
                                    last edited by

                                    dns forwarrd is disable at all

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

                                      And what is running on 53? Your not showing what pid is listing on 53..

                                      Here do this.

                                      sockstat | grep .53

                                      example

                                      [2.4.4-RELEASE][admin@sg4860.local.lan]/root: sockstat | grep .53
                                      unbound unbound 33787 3 udp4 192.168.3.253:53 :
                                      unbound unbound 33787 4 tcp4 192.168.3.253:53 :
                                      <snipped rest for brevity>

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

                                      R 1 Reply Last reply Reply Quote 1
                                      • F
                                        frazao @Rafel S
                                        last edited by

                                        @Rafel-S said in Pfsense does not respond to dns requests from LAN Host's:

                                        ns't let me start it

                                        Check log files. paste it to here.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Rafel S @johnpoz
                                          last edited by

                                          @johnpoz said in Pfsense does not respond to dns requests from LAN Host's:

                                          sockstat | grep .53

                                          30cf8b0cdefc3aaa9158af6529f8ad4b.png

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

                                            So you have nothing running on port 53... And unbound wont start for why? What is in the log?

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

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