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

    Pfsense and network DNS

    Scheduled Pinned Locked Moved DHCP and DNS
    dnspfsense 2.7
    27 Posts 3 Posters 2.9k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @swampland7794
      last edited by

      @swampland7794 not sure what that has to do with what dns pfsense uses? Here I posted pfsense to local dns I spun up.. And set pfsense to point there for its dns, and that is what it is using as you can see from dns lookup

      test.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 0
      • S
        swampland7794 @johnpoz
        last edited by

        @johnpoz Host "www.google.com" could not be resolved.
        DNS Lookup
        Hostname
        Timings
        Name server Query time
        127.0.0.1 No response
        2001:558:feed::1 No response
        2001:558:feed::2 No response
        203.128.45.2 0 msec

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

          @swampland7794 well clearly you didn't set it to ignore local.. Or it would of never tried asking 127.0.0.1

          ignorelocal.jpg

          When you changed that drop down to use remote, ignore local did you scroll to the bottom and hit save? Did you see it say

          applied.jpg

          You prob also want to uncheck that let wan override dns settings - see my screenshot

          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

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

            @johnpoz I would would send you a screenshot, but I can't figure out how to upload one from Android. That's what my options are set to under general settings. It shouldn't use 127.0.0.1 since that's the loopback address.

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

              @swampland7794 said in Pfsense and network DNS:

              It shouldn't use 127.0.0.1 since that's the loopback address.

              Not if you set it to use remote and ignore local.. As to posting a screen shot use this button

              post.jpg

              Or you could use this to post some external image

              external.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

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

                @johnpoz thanks, I pressed the wrong icon.
                Screenshot_20231222_093230_Firefox.jpg

                S 1 Reply Last reply Reply Quote 0
                • S
                  swampland7794 @swampland7794
                  last edited by swampland7794

                  @swampland7794 I unchecked that option after the screenshot was taken.

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

                    @swampland7794 well when you do your dns lookup now under diagnostics what do you see.. From your screenshot before that IP answered - but looks like it couldn't lookup google.. But showed a 0 ms response time..

                    Query something you know your local dns has a record for, or can lookup.. do a simple query to it with your fav tool other than pfsense for example..

                    dig.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

                    S 1 Reply Last reply Reply Quote 0
                    • J
                      jrey @johnpoz
                      last edited by

                      @johnpoz said in Pfsense and network DNS:

                      seems unlikely that a new user would be doing that

                      True, but you never know, if you don't ask.
                      Take my wife for example. Give her a piece of tech and she pokes buttons "learning". then in a few days hands the device back to me, and says "it is broken, can you make it go". First question is always, "so what did you poke?".

                      Maybe he setup some soft of pfblocker rules that are doing it?

                      not likely. Although there was a report a while back, that one of the "lists" had added 9.9.9.9 (in error) and anyone using that list, with that DNS suddenly didn't resolve.

                      in the very first post,

                      @swampland7794 said in Pfsense and network DNS:

                      I have a mini server with technitium DNS server on it and I changed pfsense general settings to have this device as the only DNS server,

                      I noticed that all of my devices are using my DNS server except pfsense itself.

                      The IP address for DNS at 203.x.y.z doesn't seem like his local "have a mini server with technitium DNS server"

                      that address seems more like

                      inetnum:        203.128.32.0 - 203.128.63.255
                      netname:        SawasNet
                      descr:          Beijing Sawas Technology Co.LTD.
                      descr:          Room 608,Beihang Boyan Building,No.238 Fouth
                      descr:          Northern Central Road,Haidian District,Beijing
                      country:        CN
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        swampland7794 @johnpoz
                        last edited by

                        @johnpoz I chose Google and my docker server.

                        Screenshot_20231222_100255_JuiceSSH.jpg

                        1 Reply Last reply Reply Quote 0
                        • S
                          swampland7794 @jrey
                          last edited by

                          @jrey I manually set my subnet to something obscure like 203.128.45.0/24 which puts my pfsense box at 203.128.45.1 and my mini server at 203.128.45.2

                          J johnpozJ 2 Replies Last reply Reply Quote 0
                          • J
                            jrey @swampland7794
                            last edited by

                            @swampland7794 said in Pfsense and network DNS:

                            set my subnet to something obscure

                            randomly or do you own the address space?

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              swampland7794 @jrey
                              last edited by

                              @jrey randomly

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

                                @swampland7794 said in Pfsense and network DNS:

                                ubnet to something obscure like 203.128.45.0/24

                                Yeah NOT a good idea at all, while technically you can do it - its a horrible idea to do that.. that space is owned by

                                inetnum:        203.128.32.0 - 203.128.63.255
                                netname:        SawasNet
                                descr:          Beijing Sawas Technology Co.LTD.
                                

                                Whatever your doing your query to refused it.. You would have to look to the acl you have set on that NS your sending the queries too.

                                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

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

                                  @johnpoz

                                  so what I said regarding ownership (good we agree) : 😊

                                  @swampland7794

                                  https://en.wikipedia.org/wiki/Private_network

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

                                    @jrey yeah its horrible practice to just pull public space out of thin air and use it locally.. You have all of rfc1918 to use, there is zero reason to use public space that you do not own.

                                    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

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

                                      @johnpoz oh that's bad. I changed it to 192.168.45.0/24. Thanks for telling me!

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        swampland7794 @swampland7794
                                        last edited by

                                        @swampland7794 I changed the DNS address to 1.1.1.1 and changed the subnet... I messed my home network and I don't have access. I'll fix it when I get home tonight and we'll see if that resolved my issue.

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