I keep finding that on our small company LAN (7 users, 3 servers) that some servers keep becoming "not accessible" for the purposes of file sharing. They display the message "\SERVER is not accessible. You might not have permission to use this network resource. The user name could not be found". But I don't know why "the user name could not be found" as all the machines are on the same domain and the PDC and BDC seem to be behaving OK.
EDIT:
VPN seems to be the cause:
It turns out I can see the server if I use the IP address (\\1.2.3.4\ etc) or the FQ active directory name (eg \server.domainname.local) but not if I use the server name on its own or a mapped network drive originally created from the "short" name. Oddly though, my machine has no issue resolving the server's DNS name as I can ping the machine name OK and it immediately comes back with the IP, however nslookup seems to fail.
It seems to be a problem with how Windows looks up machine names when connected to VPNs. When I'm connected to a VPN, windows seems to use the DNS assocated with the VPN and not the one on the domain controller. This behavior to me, seems incorrect as surely that would mean connecting to any VPN would break any ability to lookup local machine names for servers and printers etc. So I guess the real question now is, how can I make my machine still search the local Active Directory DNS (the PDC) even when connected to a VPN?
More info in my comments below.
Setup UseRasCredentials=0 as discribed here: https://www.conetrix.com/Blog/post/Access-Domain-Resources-When-Connected-to-VPN.aspx
With some VPN setups, it is required that you go through the VPN gateway. That is how they maintain a safer network environment by not allowing you to download stuff from potentially threatening sites.
If you have a lax VPN setup, you can also uncheck the box that uses the VPN's default gateway, so any requests first hit your gateway (and domain dns) before hitting the VPN's gateway and DNS.
Disconnect and reconnect to the VPN, if you had it active.
If you notice any connectivity issues, reenable the default gateways. As I said previously, the VPN may require this to be enabled.
Does your DNS server for VPN clients is the same as DNS server for Lan clients?
I think your problem is that the VPN clients use their DNS server from ISP, not from your VPN's DNS. You can make the VPN client use VPN's DNS by this step:
or use simple reg file:
Remember backup your registry before doing anything in it.
Change the binding order so that your physical NIC is higher than your VPN interface. You may have to manually (or via script) poke things around further, depending on what the VPN software does.
I had a similar issue where DNS resolved, but could not ping or tracert the IP. The way I solved my problem was by re-checking the IP settings on the server. Turns out it did not have a default gateway and setting it resolved the issue.
If you are only not able to connect to the share using the "short" name, IE NetBIOS name, then I would recommend using a WINS server as it will allow you to resolve NetBIOS names over the VPN, as long as your VPN adapter allows you to specify a WINS server. For me, I have our internal AD DNS server also configured as a WINS server and our VPN server (Sonicwall) publishes both a DNS and WINS server to our VPN clients. With this configuration we are able to resolve both the NetBIOS names as well as the FQDN.
The other thing you can do is change your DNS suffices in the advance TCP properties on your network adapter. This will have your Name resolution of short names:
Hope that helps
I think you need to set the firewall to use the PDC as its DNS so that it gives out that DNS server to the VPN clients. Or you could forward VPN requests to the PDC and make it a RAS server to use SSTP so that the clients are definitely going to have a consistent experience regarding DNS whether on VPN or LAN.
If you can PING the remote destination - (try using ip / or its dns name).
I had to delete all existing network drives by using the following command from command prompt: net use * /delete Then I rebooted the computer, connected to the vpn and mapped the network drive again using different credentials- and voilà, it works!
I found I had to reset the password and do an unlock for the user's account from within users and accounts on the server.
The workstation does not show credentials for domain accounts.
The password was somehow saved incorrectly for the user when the user logged in with an incorrect password.
Changing the password cleared out the cache and all is working.