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

    [SOLVED] reference computers on network by name instead of IP

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 6 Posters 9.9k 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.
    • K
      kejianshi
      last edited by

      It does.  Thats what I was referring to.

      I also recommend making the IPs static lease.

      That way if you ever have issue with names you can easily use IPs also.

      1 Reply Last reply Reply Quote 0
      • N
        Nullity
        last edited by

        @kejianshi:

        It does.  Thats what I was referring to.

        I also recommend making the IPs static lease.

        That way if you ever have issue with names you can easily use IPs also.

        Sounds like a good idea.

        Just yesterday I did experience a strange side-effect with Mac OS X… the Mac client actually switched it's hostname to the hostname specified by pfSense's DHCP static lease. None of my other Unix-based operating systems have ever done that, thankfully.

        Please correct any obvious misinformation in my posts.
        -Not a professional; an arrogant ignoramous.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          @Nullity:

          the Mac client actually switched it's hostname to the hostname specified by pfSense's DHCP static lease. None of my other Unix-based operating systems have ever done that, thankfully.

          Huh, why exactly you'd have non-matching hostnames like this? To confuse the enemy?

          1 Reply Last reply Reply Quote 0
          • N
            Nullity
            last edited by

            @doktornotor:

            @Nullity:

            the Mac client actually switched it's hostname to the hostname specified by pfSense's DHCP static lease. None of my other Unix-based operating systems have ever done that, thankfully.

            Huh, why exactly you'd have non-matching hostnames like this? To confuse the enemy?

            The default Android hostname is "android-755477589854367" and I think you need to be rooted to change it at the client.

            I cannot think of anything funny to say… octothorpe.

            Please correct any obvious misinformation in my posts.
            -Not a professional; an arrogant ignoramous.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Android is a lost cause regarding DHCP. IIRC it does not use the DHCP-supplied DNS servers either, used to be hardcoded to 8.8.8.8 and 8.8.4.4

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                @doktornotor:

                @Nullity:

                the Mac client actually switched it's hostname to the hostname specified by pfSense's DHCP static lease. None of my other Unix-based operating systems have ever done that, thankfully.

                Huh, why exactly you'd have non-matching hostnames like this? To confuse the enemy?

                It worked - I'm confused.

                1 Reply Last reply Reply Quote 0
                • P
                  p2ranger
                  last edited by

                  Thanks for your help

                  I was able to get it to work.

                  I went to Services->DNS Reslovler. Enable was already marked and I marked DHCP Registration and Static DHCP.

                  I then made sure under Services->DHCP server there was a listing for the computer that has the static IP that I want under DHCP Static Mappings.

                  Is there a way to get this to work without having a static IP? For example a laptop that I want to be able  to access by name when on my network but when it connects some place else it can still take what ever IP it receives at another network?

                  Thanks

                  Jason

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    DHCP static mapping are this way already.  It doesn't mess with the way a laptop get DHCP IPs on this and that network.  Only the way pfsense assigns their ip.

                    1 Reply Last reply Reply Quote 0
                    • W
                      Waggles
                      last edited by

                      @doktornotor:

                      @Nullity:

                      the Mac client actually switched it's hostname to the hostname specified by pfSense's DHCP static lease. None of my other Unix-based operating systems have ever done that, thankfully.

                      Huh, why exactly you'd have non-matching hostnames like this? To confuse the enemy?

                      Besides Android, some devices have screwed up host names.  The host name populated in the initial static lease for my HP1810-8Gv2 switch looked like nothing in the setup pages on its web server.  Therefore, it became known as "switch" in DNS forwarder and now all is good with the world.

                      1 Reply Last reply Reply Quote 0
                      • P
                        p2ranger
                        last edited by

                        @kejianshi:

                        DHCP static mapping are this way already.  It doesn't mess with the way a laptop get DHCP IPs on this and that network.  Only the way pfsense assigns their ip.

                        Ah yes, thank you. I didn't think about that but should have.

                        Jason

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