Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How to access pfsense machine fully qualified domain name in local network

    Scheduled Pinned Locked Moved DHCP and DNS
    13 Posts 6 Posters 4.9k 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.
    • R Offline
      richardsago
      last edited by

      Good day. I'm attempting to follow the instructions on setting up acme let's encrypt and on 50 minutes 15 seconds from netgate's youtube video "Let's Encrypt on pfSense" (https://www.youtube.com/watch?v=h7Rlru3agdA) the instruction was that pfsense must be accessible in the network by hostname. I think I followed the speaker's setup by going to "System" > "General Setup" and changing "Hostname" and "Domain"

      4a07d706-bee8-40bf-8bb1-7b4387d7b957-image.png

      I set the two information above to be the same value as set in the hostname + domain in "Services" > "Acme Certificates" > "Certificates":

      207b617e-41a8-46a5-911b-53a36475c2e7-image.png

      The TXT value has been set in the dns provider:

      17af3b89-d6db-4128-bef6-221f91128882-image.png

      This certificate has passed issue and renew steps under "Services" > "Acme Certificates" > "Certificates":

      1ba65899-c126-474f-afe9-55df1e8295bf-image.png

      But I can't access pfsense by its hostname + domain name in the network:

      aac4f045-827d-4edc-84e3-35560803ded4-image.png

      pfsense can still be accessed using IP Address:

      ce047e1e-43d9-4ed9-a485-e077377196fe-image.png

      The youtube speaker gave alternative of adding host override but I did not do this because we have two WAN and I don't know which IP address I need to set in "Services" > "DNS Resolver" > "General Settings" > "Host Overrides"

      In case useful this is WAN1:
      f9b0836e-97c4-4fff-92f0-a491f44cc005-image.png

      This is WAN2:
      d523a214-a4f8-4a5a-94fc-38c992ee9d1e-image.png

      Please let me know what I'm doing wrong so that pfsense's hostname can be accessible in the local network while making sure pfsense is not accessible through the internet. Thank you in advance.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @richardsago
        last edited by

        @richardsago said in How to access pfsense machine fully qualified domain name in local network:

        But I can't access pfsense by its hostname + domain name in the network:

        Get a command line.
        Type

        nslookup
        

        what do you see ?

        Type

        ipconfig /all
        

        Who is the DNS your PC is using ?

        Your Librewolf, what DNS is it using ?
        My browser shows me this info :

        1b61d245-9884-4565-8ebc-01db0dadc12c-image.png

        and guess what is the default setting ? Sure enough, not the one I picked manually : "Use default Resolver".
        If Librewolf was asking pfSense for this "hostname+domain", it would get the correct answer. Only pfSense has this answer.

        No "help me" PM's please. Use the forum, the community will thank you.

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          richardsago @Gertjan
          last edited by

          Thank you @Gertjan for the reply. Running nslookup on my PC result in this:

          bb4f3858-74e0-4319-a0c6-9e9397f9ba63-image.png

          Result of ipconfig /all:

          deabe840-1bbb-4585-9374-0da214bbd557-image.png

          This is my browser's DNS setting:
          c6ed9be8-f375-4c73-8397-7b913c6cb3b3-image.png

          My hunch is I need to add host override in DNS Resolver and in that entry's IP Address I need to add all my pfsense VLAN top IP address (separated by commas) because they all point to pfsense. Will this solve my problem? And will this solution still prevent my pfsense from being accessed through the internet? <-- I would like to access my pfsense using its hostname in my local network, but I don't want my pfsense to be accessed through the internet.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @richardsago
            last edited by

            @richardsago

            With

            e954abac-b8e8-40b0-bb0a-3ac9da1e8e27-image.png

            your browser will never find the IP of hostname + domain name (the host name of pfSense).

            You have to check :

            fe2da793-0325-4163-864e-78c8430fc6d4-image.png

            "Use your default Resolver".

            577ef426-108a-4572-a847-a41aa0a5958c-image.png

            Is that your LAN IP ?

            No "help me" PM's please. Use the forum, the community will thank you.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              richardsago @Gertjan
              last edited by

              Thank you @Gertjan for the reply. I can now access the fully qualified domain name of pfsense in the local network. It looks like there's a delay between setting "Hostname" and "Domain" in "System" > "General Setup" and being able to access its FQDN in the local network.

              luckman212L GertjanG 2 Replies Last reply Reply Quote 0
              • luckman212L Offline
                luckman212 LAYER 8 @richardsago
                last edited by luckman212

                @richardsago Not aware of any such delay on pfSense's side. More likely your system or browser's local DNS cache. I personally despise the ham-fisted attempts by these browsers that add complexity to a battle-tested system like DNS. I understand it's trying to protect people (show ads?) but no thank you, I'd rather control my own DNS. I have rules to try to block DoH/DoT and also emit the option to try to signal the browsers not to enable it:

                server:
                local-zone: "use-application-dns.net" always_nxdomain
                

                from https://docs.netgate.com/pfsense/en/latest/recipes/dns-block-external.html#dns-over-tls

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

                  @luckman212 agree if you want to offer doh, sure ok - but it should be an opt in setup.. The problem is if it was - nobody would be using it.

                  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 26.03.1 | Lab VMs 2.8.1, 26.07

                  GertjanG tinfoilmattT 2 Replies Last reply Reply Quote 0
                  • GertjanG Offline
                    Gertjan @richardsago
                    last edited by

                    @richardsago said in How to access pfsense machine fully qualified domain name in local network:

                    It looks like there's a delay between setting "Hostname" and "Domain" in "System" > "General Setup" and being able to access its FQDN in the local network.

                    As soon as you enter :

                    cecb4d81-444e-42fc-83fe-f536d6bbd462-image.png

                    and Save at the bottom of the page "System > General Setup" world’s most know file file /etc/host is created.
                    Don't take my words for granted, please check for yourself : change hostname for an instance, like add an "x" and save.
                    Now look at the file, the first 3 lines :

                    19110a9d-6fe9-45cb-a3c3-d43b69ad3abc-image.png

                    ( now remove the 'x' you have added, and Save, and check again )

                    This /etc/hosts file will be read and used by Unbound, the resolver.
                    The moment you set up, or change the pfSense hostname and domain, the unbound resolver will be aware of this, as it will get restarted with the most recent, pfSense GUI settings.

                    @luckman212 said in How to access pfsense machine fully qualified domain name in local network:

                    I understand it's trying to protect people (show ads?)

                    No, imho, way more basic : it does "what they all do" : they (browser authors) want your DNS requests, as that has a value ($ or €) for them.

                    but no thank you, I'd rather control my own DNS

                    That's a big one 😊
                    You - we all, actually - can only control something, if we master it (humm, I presume you get my point here).

                    No "help me" PM's please. Use the forum, the community will thank you.

                    1 Reply Last reply Reply Quote 0
                    • GertjanG Offline
                      Gertjan @johnpoz
                      last edited by

                      @johnpoz said in How to access pfsense machine fully qualified domain name in local network:

                      but it should be an opt in setup. The problem is if it was - nobody would be using it.

                      depends how they would ask / explain it I guess.
                      Like, when installing a new browser :

                      Hi there, welcome, new user, do you want to use our very safe DNS, or do you want to use the DNS source that is offered by your local gateway/firewall ?

                      ( No need to add the following : This so called local DNS is controlled by your father, older brother, the big boss or anyone else you never ever want to give your DNS requests to - right ? )

                      What will the "I don't no sh*t about DNS average user" answer ? They will chose the safe DNS. And I can't really say that they did anything wrong. The big brother commecail DNS might seem more 'save' (or should I say anonymous ?) as a local supplier ... or the ISP as a DNS supplier, as for some reason nobody trusts the ISP DNS these days anymore.
                      I'm still blocking DoH/DoT also with the pfBlockerng option, as permitting it (= default) will fail all the legacy captive portal users (read : the android devices). My pfSense exposes a captive portal, and iwhen the DNS gets bypassed, the browser's (or OS) portal detection will fail.
                      I also prefer, by far, the DNSSEC capabilities of the unbound resolver, as, imho, its way better to know if my own resolver says "It's ok" as that '8.8.8.8' (does also do DNSEC afaik) or some other commercial DNS server says : 'It's ok'.
                      After all : when DNS gets spoofed, we can all say goodbye to our security models, as all our OS's (Windows Linux, whatever will start to 'update:upgrade' against 'unknown' upgrade/update servers .... and minutes later it's game over.
                      Extra info : when DNS goes wrong (spoofed), things like 'certificates' (TLS) become useless.

                      @richardsago : you obtained your acme certificate ?
                      Normally, you shouldn't use the 'manual DNS' method, as it's tedious.

                      No "help me" PM's please. Use the forum, the community will thank you.

                      luckman212L 1 Reply Last reply Reply Quote 0
                      • tinfoilmattT Offline
                        tinfoilmatt LAYER 8 @johnpoz
                        last edited by

                        It became clear a while ago now that vendors/service providers stand to gain the most from DoH implementation, not end users.

                        1 Reply Last reply Reply Quote 0
                        • luckman212L Offline
                          luckman212 LAYER 8 @Gertjan
                          last edited by

                          @Gertjan Yup. An interesting problem indeed. I propose this draft RFC RFC 9666: Method for Efficient Selection of DNS Resolution

                          d9939603-4ec7-410b-b094-4314e849793c-image.png

                          patient0P 1 Reply Last reply Reply Quote 2
                          • patient0P Online
                            patient0 @luckman212
                            last edited by

                            @luckman212 said in How to access pfsense machine fully qualified domain name in local network:

                            I propose this draft RFC RFC 9666: Method for Efficient Selection of DNS Resolution

                            Finally a RFC I understand :)

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              richardsago
                              last edited by

                              Thank you all for the replies. @luckman212, @Gertjan I forgot about clearing browser cache and will try to remember this in the future for similar problem.

                              Normally, you shouldn't use the 'manual DNS' method, as it's tedious.
                              @Gertjan my DNS-cPanel certificate did not work yet so I thought to make DNS-Manual work first, then make captive portal work, before coming back to make DNS-cPanel work.

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post
                              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                              Privacy Policy · Cookie Policy