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

    Local IP's resolved from names ?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 891 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.
    • randombitsR
      randombits
      last edited by

      Is there a way to redirect a local address from a 'short name'. What I mean is I have a Raspberry Pi with a few servers on 192.168.2.60:3000, 192.168.2.60:8112, 192.168.2.60/emoncms etc, I would like to have these resolve from say graf, deluge and emoncms shortcut names rather than typing in the longer IP addresses because it would be easier to remember !

      bingo600B 1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600 @randombits
        last edited by bingo600

        @randombits

        DNS would resolve a name to an ip address only.
        Not anything related to :<portnumber> or /<webpage>

        Ie. you could resolve
        graf to 192.168.2.60 , but not 192.168.2.60:3000

        You could make aliases for all of them, resolving to ie raspberry.

        Make :
        raspberry an A record pointing to 192.168.2.60
        graf an alias (cname) pointing to raspberry
        deluge an alias (cname) pointing to raspberry
        emoncms an alias (cname) pointing to raspberry

        And use
        graf:3000
        deluge:8112
        emoncms/emoncms

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        1 Reply Last reply Reply Quote 1
        • randombitsR
          randombits
          last edited by

          Thanks @bingo600, Where do I setup the cname and A records? I guess the bottom page of DNSresolver ? under host overrides ?

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @randombits
            last edited by

            @randombits said in Local IP's resolved from names ?:

            under host overrides ?

            yes

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