Add Custom DNS for VM

David Vizcaíno 1 Reputation point
2020-12-08T06:27:46.06+00:00

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.

46290-image.png

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.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
612 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,318 questions
{count} votes