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

    DNS host entry

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 732 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.
    • CreationGuyC
      CreationGuy
      last edited by CreationGuy

      I have a VM running on my lan, it is running Portainer wich is hosting several containers. One is Uptime Kuma.

      The IP for Portainer is 10.20.22.3, to get to the Uptime Kuma, I would go to either 10.20.22.3:3001 as the port is what actually tells the browser which container to load or portainer.ourlan.lan:3001.

      I'd like to set up a DNS name on pfsense for uptime.ourlan.lan so that it points to 10.20.22.3. I would then create a Proxy Host in Nginx Proxy Manager to point uptime.ourlan.lan to the right destination.

      I know this sounds complicated, but I got it to work by editing a Windows HOSTS file

      10.20.22.3 uptime.ourlan.lan
      

      How can I do this on the pfsense end so I don't need to modify HOSTS?

      FYI, I have DNS TLS set up so DNS Forwarder is disabled.

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

        @creationguy said in DNS host entry:

        How can I do this on the pfsense end so I don't need to modify HOSTS?

        You can control the /etc/hosts file ;)
        pfSense uses a GUI for that.
        Go here : Services > DNS Resolver > General Settings and scroll to the bottom.
        Add a host over ride (host name, network and IP).
        Done.

        Fact check : Check your host file now.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        CreationGuyC 1 Reply Last reply Reply Quote 2
        • CreationGuyC
          CreationGuy @Gertjan
          last edited by CreationGuy

          @gertjan said in DNS host entry:

          @creationguy said in DNS host entry:

          How can I do this on the pfsense end so I don't need to modify HOSTS?

          You can control the /etc/hosts file ;)
          pfSense uses a GUI for that.
          Go here : Services > DNS Resolver > General Settings and scroll to the bottom.
          Add a host over ride (host name, network and IP).
          Done.

          Fact check : Check your host file now.

          Man, I thought I had tried that and it didn't work- I think that I must have messed up the parent domain.

          Thank you though, appreciate the help.

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

            @creationguy

            Unbound parses the hosts file during startup.
            My over rides are all there, in that file.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            CreationGuyC 1 Reply Last reply Reply Quote 0
            • CreationGuyC
              CreationGuy @Gertjan
              last edited by

              @gertjan Re-reading my last post, I wasn't very clear.

              Your suggestion did work. I thought I had tried that already but I had a typo or misconfig.

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

                @creationguy
                Ah, ok’ right.
                Syntax errors are not allowed ;)

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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