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

How to setup local domain in local network that everyone

Scheduled Pinned Locked Moved DHCP and DNS
25 Posts 3 Posters 2.0k 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.
  • N
    netboy @johnpoz
    last edited by Sep 17, 2023, 2:52 PM

    @johnpoz said in How to setup local domain in local network that everyone:

    Your client need to point to pfsense ip for host overrides to work.

    I NOW understand what you are talking about.......how do I route the client to point to pfsense IP?

    J 1 Reply Last reply Sep 17, 2023, 2:55 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @netboy
      last edited by johnpoz Sep 17, 2023, 2:57 PM Sep 17, 2023, 2:55 PM

      @netboy Out of the box it would of done that.. You must of changed your dhcp settings in pfsense, or you setup the IP on the box static?

      Out of the box pfsense will point all dhcp clients to its own IP.

      dhcp.jpg

      I on purpose point my clients to my pihole, the 192.168.3.10 address, but then my pihole asks pfsense. But if you didn't mess with those settings by default dhcp client of pfsense would point to pfsense IP as its dns.. And your host override would work.

      btw - I noticed in your setup you had pfblocker installed. If clients do not point to pfsense for their dns - pfblocker isnt really going to work.

      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.7.2, 24.11

      N 2 Replies Last reply Sep 17, 2023, 3:02 PM Reply Quote 0
      • N
        netboy @johnpoz
        last edited by Sep 17, 2023, 3:02 PM

        @johnpoz Got it!

        Here is the screenshot of LAN

        a7202404-57a6-4870-b3c8-ce7c8f78a0d2-image.png

        AND the SERVER portion of the screenshot

        d7186435-b81e-4831-afbe-a9423ffc68ba-image.png

        What you are saying is the SERVER portion should be BLANKED out so that all routes will be thru the pfsense router not thru google - Have I understaood the concept?

        1 Reply Last reply Reply Quote 0
        • N
          netboy @johnpoz
          last edited by Sep 17, 2023, 3:16 PM

          @johnpoz said in How to setup local domain in local network that everyone:

          I noticed in your setup you had pfblocker installed. If clients do not point to pfsense for their dns - pfblocker isnt really going to work.

          you are absolutely RIGHT! I was really ignorant.....I have NOW blanked out the server portion and rebooted my PC.

          Now the nslookup returns the following:

          C:> nslookup
          Default Server: router2100.XXX.local
          Address: 192.168.0.1

          1 Reply Last reply Reply Quote 0
          • N
            netboy @johnpoz
            last edited by Sep 17, 2023, 3:26 PM

            @johnpoz Resolver WORKS now....Thanks @johnpoz for hand holding me!!!

            J 1 Reply Last reply Sep 17, 2023, 3:30 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @netboy
              last edited by Sep 17, 2023, 3:30 PM

              @netboy .local isn't a very good choice - that is a mdns domain.. You should use something like home.arpa which is the new recommended domain for local use, and is what pfsense now defaults too.

              I am in the middle of moving over from my long term local.lan domain, .lan would never be a public tld. But home.arpa is best choice for local domains.

              So your tv could be tv.home.arpa for example.. I just have some old ssl certs that have been changing when they expire.. So for example my nas uses home.arpa and my printer, etc..

              $ dig nas.home.arpa +short
              192.168.9.10
              
              $ dig brother.home.arpa +short
              192.168.2.50
              

              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.7.2, 24.11

              N 1 Reply Last reply Sep 17, 2023, 3:38 PM Reply Quote 0
              • N
                netboy @johnpoz
                last edited by Sep 17, 2023, 3:38 PM

                @johnpoz said in How to setup local domain in local network that everyone:

                .local isn't a very good choice - that is a mdns domain.. You should use something like home.arpa

                I will try to understand what you are talking about and change it....

                Quick question in the resolver....I have tv as below

                e0682b09-6aa9-41e3-a352-6e45584461bf-image.png

                Works fine but I have to enter so:

                http://tv.home.com:9981/extjs.html

                Is there a way tv.home.com resolves to /tv.home.com:9981/extjs.html?

                J 1 Reply Last reply Sep 17, 2023, 3:42 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @netboy
                  last edited by johnpoz Sep 17, 2023, 3:43 PM Sep 17, 2023, 3:42 PM

                  @netboy no there isn't dns does not provide that ability. You would have to use a proxy to do something like that. Or whatever is serving up extjs.html - on that httpd make that the default document.

                  Most http servers serve like index.html or index.php as the default document.. But that can normally be changed to anything you want. Not sure exactly what your accessing, if it really is a tv then most likely not.

                  But what does it matter to be honest, create a bookmark and there you go..

                  if was any typical httpd you could also have it listen on the default 80 or 443 port if https and then you wouldn't have to use the port..

                  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.7.2, 24.11

                  N 1 Reply Last reply Sep 17, 2023, 3:46 PM Reply Quote 0
                  • N
                    netboy @johnpoz
                    last edited by Sep 17, 2023, 3:46 PM

                    @johnpoz Got it!

                    Got it thx

                    N 1 Reply Last reply Sep 27, 2023, 3:11 AM Reply Quote 0
                    • N
                      netboy @netboy
                      last edited by netboy Sep 27, 2023, 3:11 AM Sep 27, 2023, 3:11 AM

                      @netboy I am posting a better method to accomplish my functiionality.

                      Say you have a local webserver and running NUT server.....the URL will be something like
                      http://192.168.X.XX/cgi-bin/nut/upsstats.cgi

                      I do NOT want to remember the full URL and by typing a shortcut say "ups" the browser must take me to http://192.168.X.XX/cgi-bin/nut/upsstats.cgi

                      This can be done in Chrome browser as follows:

                      Step 1 :
                      Type chrome://settings/searchEngines in chrome browser

                      Step 2: Add a site search
                      search engine: just make up some name
                      shortcut : ups
                      URL with %s in place of query : http://192.168.X.XX/cgi-bin/nut/upsstats.cgi

                      And Add!

                      Thats it! now if you type ups in the chrome browser the browser will take you to http://192.168.X.XX/cgi-bin/nut/upsstats.cgi

                      The netgate resolver only resoves to IP and not to the FULL url! Maybe Netgate can add this functionality

                      J 1 Reply Last reply Sep 27, 2023, 4:44 AM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @netboy
                        last edited by johnpoz Sep 27, 2023, 4:46 AM Sep 27, 2023, 4:44 AM

                        @netboy wouldn't bookmark just be easier???

                        if you goal is typing it out in your address bar, just set a tag or keyword.

                        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.7.2, 24.11

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