How can I redirect an external URL to an internal host IP for staff using the external URL to access the host from within my local network?

Posted on 2018-03-13
Low Priority
Last Modified: 2018-03-13
I have a Windows 2012 DNS server with an internal Forward Lookup Zone of internal.com (I'm not using my real domain names). I have a separate company.com domain hosted on an external DNS server. When staff want to access an internal host from the Internet (outside of the office), they use the url hostname.company.com. On my internal Windows DNS server I would like anyone trying to access hostname.company.com to be redirected to the appropriate internal host versus being sent to the public IP. I'm not familiar with how to configure this. I tried configuring another forward lookup zone for company.com on my internal Windows DNS server with an A record of hostname.company.com and the internal IP Address of the internal host. However, it did not work.

Any advice will be appreciated.

Thank you.
Question by:Robert B
LVL 40

Expert Comment

whatever you did on internal dns server is correct..
how your users are connecting to internal network, through VPN?
U need to ensure that while user connects to internal network via VPN, the VPN network should get DNS server IP as internal DC/DNS server IPs, then it will resolve
There must be DHCP some where in network which is responsible for leasing out IPs to VPN clients
U need to change DNS setting in that dhcp scope to point to internal AD /DNS sever

Expert Comment

by:Yves Accad
Also if you just made the change you may need to flush dns cache on local hosts if you are talking about your internal hosts.

Author Comment

by:Robert B

Thank you both for your comments, advice, and assistance with the issue. Was a combination of both of your comments that helped me resolve the issue.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Join & Write a Comment

Virtualization software lets you run different versions of Windows, Ubuntu Linux and other versions of Linux all at the same time, rather than running each one directly from your computer's hard drive.
Seizing the Operation Master Roles in Windows Server 2016 in case of FSMO holder failure.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question