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.
LVL 1
roy_battyDirectorAsked:
Who is Participating?
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.
0
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.
https://blog.lan-tech.ca/tag/logon/

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.
0

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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

JohnBusiness Consultant (Owner)Commented:
Correct - I do not use cached credentials. Log in and the script works.
0
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.
https://blog.lan-tech.ca/tag/hosts/
0
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:

Split:
-- 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.

Pber
Experts-Exchange Cleanup Volunteer
0
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
DrayTek

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.