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

    Custom domain?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 1.4k 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.
    • Z Offline
      zippy2016
      last edited by

      I may be missing something very simple here, but I am having difficulty figuring this out so I thought I would ask for help…

      Say I want to set up my own custom domain limited to my LAN, for internal use only?  The aim is to have a made-up address, like "hello.goodbye" that would (obviously) be routable on the LAN only, not externally, to be used for easy reference for servers in my LAN (such as my NAS).  How might one go about adding the necessary entries in DNS resolver so that the address resolves to the correct LAN IP (assuming this is even possible)?

      Any help would be appreciated.

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

        This is how it would be out of the box.. What domain did you give pfsense?  I use local.lan for my local domain.  If you register dhcp clients then they would all resolve via theirname.yourdomain.tld

        You can then for sure add host overrides for boxes that might be static, or if you don't want to register dhcp clients, etc..

        so for example.  My storage box..

        dig storage.local.lan

        ; <<>> DiG 9.10.4-P3 <<>> storage.local.lan
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22285
        ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; QUESTION SECTION:
        ;storage.local.lan.            IN      A

        ;; ANSWER SECTION:
        storage.local.lan.      3600    IN      A      192.168.9.8

        ;; Query time: 0 msec
        ;; SERVER: 192.168.9.253#53(192.168.9.253)
        ;; WHEN: Sun Oct 16 08:48:51 Central Daylight Time 2016
        ;; MSG SIZE  rcvd: 62

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

        1 Reply Last reply Reply Quote 0
        • Z Offline
          zippy2016
          last edited by

          I appreciate the help.  For some reason, when I tried to access the domain in question today, it worked.  Not sure what changed to make it work, but that is fine with me.

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

            Do you have your client point to more than just pfsense for dns?  Without knowing your setup it is impossible for me to guess what you were having issues with.  But what I can tell you is this is how pfsense is designed to work right out of the box.

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

            1 Reply Last reply Reply Quote 0
            • Z Offline
              zippy2016
              last edited by

              Nope - the only DNS server used is the pfsense box.

              I think the mistake was that I used a hello.goodbye, instead of NAS.hello.goodbye. I assigned a host override in DNS resolver for hello.goodbye, to redirect to the local IP address. Now when I type in the originally desired NAS address (hello.goodbye), it redirects to the correct internal IP address.  Is that the right way to do this?

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

                if your domain is hello.goodbye then a proper FQDN for host would be host.hello.goodbye

                if you wanted something to resolve with just hello.goodbye then when you create the override your host would be hello and your domain would be goodbye

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

                1 Reply Last reply Reply Quote 0
                • Z Offline
                  zippy2016
                  last edited by

                  That is exactly what I had done.  Thanks for confirming!

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