Domain member laptop connected via VPN

I have a user who has a laptop that is joined to the companies internal windows server 2012 r2 domain.

He has network drives mapped via a login script. These work fine internally but when connected via VPN (using the Draytek Smart VPN client) the drives do not work. I know that this is casued by the DNS servers being unable to resolve to the fileserver name on the company network.

The user is currently using the cached domain account to log into the laptop whilst off the company network.

We are curently using the Draytek router as a VPN server.

Can someone tell me the best way to make the user experience when connected via VPN as smooth as possible for the end user.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
For one or two users, just make the entries needed in the Local HOSTS file. I do this on my own machine for multiple clients and it works very well.
Rob WilliamsCommented:
A couple of options:
Rather than using cached credentials login to the Domain which will allow the script to run.  See the following link, though I doubt this is possible with the Draytek client.

Alternatively copy the script to the laptop and save somewhere such as the desktop and manually click on it to run.  You can avoid any DNS issues by changing DNS names to IPs or set the VPN connection to ONLY use the DC as your DNS server, i.e. no alternates like router or ISP.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob WilliamsCommented:
Hosts file will address DNS issues but the script will not run if you use cached credentials.
Virus Depot: Cyber Crime Becomes Big Business

The rising threat of malware-as-a-service is not one to be overlooked. Malware-as-a-service is growing and easily purchased from a full-service cyber-criminal store in a “Virus Depot” fashion. View our webinar recording to learn how to best defend against these attacks!

JohnBusiness Consultant (Owner)Commented:
Correct - I do not use cached credentials. Log in and the script works.
Rob WilliamsCommented:
Will the Draytek client allow you to connect the VPN before you log in?  If not you have to use cached credentials.  Windows, Cisco and some other VPN clients allow you to do this.

If you do want to use the Hosts file, the following link outlines adding entries to hosts and lmhosts files for DNS and NetBIOS access for server and domain names.
PberSolutions ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

-- Rob Williams (https:#a42421341)
-- John Hurst (https:#a42421339)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.