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

    OpenVPN DNS Issues on Windows

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 312 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.
    • V
      VoltarGomes
      last edited by

      I am trying to setup my server running OpenVPN and dnsmasq to route DNS requests for my server's hostname or domain to the server's local IP so that I can use smb over the VPN and continue to access my server's various webservers using the full domain. I have this setup and working correctly on an iPad and two Android phones but it isn't working on my Windows's machines. On Windows I can access my sever via domain (it routes to the local IP as expected) but not via the machine name which means I can't use smb as I would at home.

      Any ideas on the issue?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by

        did you try to put it inside C:\Windows\System32\drivers\etc\hosts ?

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

          Did you hand your vpn client your dns in your openvpn config? I use this every day, all day.. Is there some reason your using the forwarder (dnsmasq) and not unbound on pfsense?

          dnsvpn.jpg

          When your client connects.. Look in your interface details with ipconfig /all Do you see that it was handed dns?

          When I get to work this morning, I will connect as always and show you how it should look.

          You are running your openvpn server on pfsense right?

          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 24.11 | Lab VMs 2.7.2, 24.11

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