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

    Local dns

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 2 Posters 1.5k 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.
    • J Offline
      jon9314
      last edited by

      Hi all,
      I have a domain name let's call it domain.org . I would like to set up my home network so that if someone goes to minecraft.domain.org they would get redirected to my mincraft! Server. II would also line to have mediaserver.domain.org to redirect to my media server. Also can I have separate servers on the same machine be assigned different sub domains?Sorry in advance for being such a noon. I don't even know if I'm using the right terms.
      Thanks in advance for any help.

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

        So when you look at a machines information, for example windows I use local.lan as my network

        C:>ipconfig /all

        Windows IP Configuration

        Host Name . . . . . . . . . . . . : i5-w7
          Primary Dns Suffix  . . . . . . . : local.lan
          Node Type . . . . . . . . . . . . : Hybrid
          IP Routing Enabled. . . . . . . . : No
          WINS Proxy Enabled. . . . . . . . : No
          DNS Suffix Search List. . . . . . : local.lan

        So I can resolve stuff via their names in local.lan

        C:>ping pfsense.local.lan

        Pinging pfsense.local.lan [192.168.9.253] with 32 bytes of data:
        Reply from 192.168.9.253: bytes=32 time<1ms TTL=64
        Reply from 192.168.9.253: bytes=32 time<1ms TTL=64
        Reply from 192.168.9.253: bytes=32 time=1ms TTL=64
        Reply from 192.168.9.253: bytes=32 time<1ms TTL=64

        Ping statistics for 192.168.9.253:
            Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
        Approximate round trip times in milli-seconds:
            Minimum = 0ms, Maximum = 1ms, Average = 0ms

        C:>ping storage.local.lan

        Pinging storage.local.lan [192.168.9.8] with 32 bytes of data:
        Reply from 192.168.9.8: bytes=32 time=5ms TTL=128
        Reply from 192.168.9.8: bytes=32 time<1ms TTL=128
        Reply from 192.168.9.8: bytes=32 time<1ms TTL=128
        Reply from 192.168.9.8: bytes=32 time=1ms TTL=128

        Ping statistics for 192.168.9.8:
            Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
        Approximate round trip times in milli-seconds:
            Minimum = 0ms, Maximum = 5ms, Average = 1ms

        C:>ping esxi.local.lan

        Pinging esxi.local.lan [192.168.9.40] with 32 bytes of data:
        Reply from 192.168.9.40: bytes=32 time=1ms TTL=64
        Reply from 192.168.9.40: bytes=32 time<1ms TTL=64
        Reply from 192.168.9.40: bytes=32 time<1ms TTL=64
        Reply from 192.168.9.40: bytes=32 time<1ms TTL=64

        Ping statistics for 192.168.9.40:
            Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
        Approximate round trip times in milli-seconds:
            Minimum = 0ms, Maximum = 1ms, Average = 0ms

        C:>

        Not sure what you want with subdomains?  You want those for what exactly

        I would assume your servers like your minecraft etc.  are static so easy quickest way is to just use host over rides either in forwarder section if your using that or resolver if using that.  See pic for example

        overrides.png
        overrides.png_thumb

        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.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • J Offline
          jon9314
          last edited by

          I want:
          server1.mediaserver.cf to be routed to 192.168.1.2
          Server2.mediaserver.cf to be routed to 192.168.1.3
          Server3.mediaserver.cf to be routed to 192.168.1.4
          …
          I would also like:
          Server4.mediaserver.cf to be routed to 192.168.1.5:7080
          Server5.mediaserver.cf to be routed to 192.168.1.5:7081
          ...
          I want this so if I'm not at home I can log into my different servers this way i.e. server1,server2,...
          Is this possible?
          Ist it clear what I'm wanting to do?
          Thanks

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

            yeah so create those in your over rides like I showed mine.  Just create server1, 2, 3, 4 5

            Dns has NOTING to do with those 7080 and 7081 ports..  DNS doesn't know what ports are, but sure if you wanted to in the application is it a browser?  You could do http://server4.mediaserver.cf:7080 but why not just run those applications on the say 80?  Since its the same server you can have more than 1 IP, so use say .5 and .6

            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.1, 25.07.1

            1 Reply Last reply Reply Quote 0
            • J Offline
              jon9314
              last edited by

              OK thanks.
              I didn't realize those settings affected wan requests.

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

                Wan??  huh?? You stated LOCAL DNS..

                Are you wanting people on the public to resolve these names and get to your public IP.. And then based on name you want to forward that to a different internal IP.. Then you need a reverse proxy – look in the packages.

                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.1, 25.07.1

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jon9314
                  last edited by

                  Thanks for pointing me in the right direction.

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