Add Custom DNS for VM
Hi,
I followed this template to setup a Moodle as a normal website, not an an App Service. https://techcommunity.microsoft.com/t5/azure-database-for-mysql/deploying-moodle-on-azure-things-you-should-know/ba-p/814054 , went for the minimal configuration.
Resulting on several resources including a VM with a DNS ending on eastus.cloudapp.azure.com. I want my students to be able to point to a new custom DNS I just purchased.
So I followed this tutorial to delegate the DNS https://learn.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns, and then added the A record as described here: https://learn.microsoft.com/en-us/azure/dns/dns-custom-domain#public-ip-address with the difference that "www" was put on the name of the record.
Problem: the moment I point to the new custom DNS it keeps redirecting me to the original DNS ending on eastus.cloudapp.azure.com
I need to change the VM DNS to the custom one I got. I don't want to be redirected to the azure-provided DNS, I want my students to see the custom DNS on top of their browsers throughout their whole experience.
Thank you.