Score:-1

Can I resolve the same domain internal and external?

sk flag

I have a domain on the internet (purchased from CloudFlare) called: mycompany.com there I have a CNAME created help.mycompany.com, and it works and I would like to do the same for a page on a server within my local network. My domain is on corp.mycompany-large.com so I tried to create a zone in the DNS, the zone was mycompany.com (the same one I bought at CloudFlare) and there I created a CNAME that redirected to my website within my network, the problem that help.mycompany.com stopped resolving, or did not resolve to the internet. Is there any way to create a mycompany.com Zone on my local domain controller that also resolves to the internet? to resolve hello.mycompany.com (CNAME created in my DNS) but also help.mycompany.com which is in Cloudflare.

vn flag
https://en.wikipedia.org/wiki/Split-horizon_DNS, or just put the local record with the local in the main Cloudflare zone; no one on the outside will be able to do anything with it, one would hope.
in flag
The zones can not be "merged" - You have to maintain both independently.
mikesneider avatar
sk flag
@Virsacer so there can't be an external and internal CNAME with the same domain?
in flag
When you set up a local zone it will not ask any other server since it is master for the zone and "knows everything about it", so you have to put `help` there too.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.