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

    Accessing server by hostname

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 5 Posters 7.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.
    • jimpJ Offline
      jimp Rebel Alliance Developer Netgate
      last edited by

      No, in the OpenVPN server settings one of the choices is DNS servers to supply to the client (assuming you're using PKI…)

      Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • B Offline
        bmatic586
        last edited by

        @jimp:

        No, in the OpenVPN server settings one of the choices is DNS servers to supply to the client (assuming you're using PKI…)

        Ok, got that..i enabled it and now i can access a share, i have to put in the actual ip address instead of the hostname…the hostname still gets unresolved.

        is there a setting to fix this issue as well?

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          If the DNS server gets passed to the OpenVPN client, and that DNS server can resolve the hostnames you want, it should all just work.

          Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • B Offline
            bmatic586
            last edited by

            @jimp:

            If the DNS server gets passed to the OpenVPN client, and that DNS server can resolve the hostnames you want, it should all just work.

            ok…so i enabled client-to-client vpn and that allowed me to access shares...but i still can't access shares with a hostname...

            1 Reply Last reply Reply Quote 0
            • Cry HavokC Offline
              Cry Havok
              last edited by

              That's down to WINS I suspect. You can either use the name that's in DNS, or you can ensure you have a WINS server on your LAN and that you push it to your OpenVPN clients.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                I have a mixed network with mostly Windows machines, a Mac, and a few Linux boxes. There is no DNS or WINS server, and adding one is outside of my control. If I put a clean install of 10.04 desktop on a computer, then all other machines on the network can get to that machine by hostname just fine. However, if I put 10.04 server on the same computer, then the other machines can only get to it by IP address. The hostname does no

                1 Reply Last reply Reply Quote 0
                • Cry HavokC Offline
                  Cry Havok
                  last edited by

                  That means you have something on your network doing name resolution, it could be any one of a number of things (DNS, WINS, Bonjour/Zeroconf) and there isn't enough information to know exactly which. I'm guessing that when you install your Ubuntu 10.04 desktop it's installing a package that enables the registration of it's hostname in that service, and that package isn't installed by default with Ubuntu server.

                  What versions of Windows do you have (eg Windows XP Pro) and what version of MacOS? Does the access by hostname work from the Windows and the MacOS hosts, or just the Windows hosts?

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nachtfalke
                    last edited by

                    To access the hosts you need HOSTNAME + DOMAINNAME

                    Hostname: PC1
                    Domain. Mydomain.com

                    PC1.Mydomain.com

                    If you do not want to enter the domain name, you have to enter this domain name on your clients netzwork config tool.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bmatic586
                      last edited by

                      I'm only running windows machines…xp, 7, 2003 server...no mac or linux

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        Nachtfalke
                        last edited by

                        Do not know all english expressions therefore I better let talk pictures.
                        You need to enter this domains on all the clients from where you want to establish the connection by hostname. I think in a windows domain you could use GPOs for that.

                        domains.JPG
                        domains.JPG_thumb

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