Short question:
How to setup a local and external dns that have an external destination and a internal destination.
Technologie used:
- Websites are hosted in IIS
- Local DNS is in Windows server
- External DNS via CPanel
- using Azure Application proxy for the bridge external to internal
Explanation:
I've made a schema, see image.
- entrepriseName.com: website hosted externally somewhere by somebody.
- site1.entrepriseName.com : Contains some basic webpages. Which are referenced by https://entrepriseName.com. With html . url site1.entrepriseName.com is not existing yet, and its hosted under https://site1-entrepriseName.msappproxy.net
- site2.entrepriseName.com : Availaible ONLY locally / vpn. With https. url site2.entrepriseName.com is not existing yet. currently hosted on https://site2.entrepriseName.local, but https is complaining. And its not clean, should be under site2.entrepriseName.com
https://site1-entrepriseName.msappproxy.net should in reality be https://site1.entrepriseName.com. Assuming I added a custom domain name in azure and configure the app proxy correctly. The next step would be to add some sort of dns... When I tried to add a foward lookup zone "entrepriseName.com" in the LOCAL dns. Our external website "entrepriseName.com" didn't work locally, as everything with entrepriseName.com (which is normal, after tought haha...)
Actual Question
So how respect make sure that these 3 conditons are met:
Internal request route to site1.entrepriseName.com but is also accesible externally (with AAD app proxy connector)
Internal request an also route to site2.entrepriseName.com (only avalaible locally).
Lets say that site1 load a script like
<script src="js/potato.js"></script>
Since https://entrepriseName.com have reference to site1 with iframe. Will entrepriseName.com attempt to load the realtive script js/potato.js? Obviously we want to prevent this from happening.