Azure – Networking – Part 35 – Azure Front Door 4 – Configure Custom Domain Name





Hello Everybody,

Hope you all are doing good. In our last article we have continued with Azure Front Door and saw how priority based routing works in Azure Front Door. Today in this article we will continue with Azure Front Door and will see how to configure Custom Domain Name for Azure Front Door.

Tool Installation Articles :

  1. Configure Azure Command Line Interface ( Azure CLI) On Windows
  2. Configure PowerShell For Microsoft Azure Az Module On Windows

Previous Azure Series :

  1. Learn Basics Of Azure Networking In 100 Hours
  2. Learn Basics Of Microsoft Azure Storage services
  3. Learn Basic Of Azure Active Directory And Azure Identity And Access Management
  4. Azure DevOps – Learn at one place
  5. Learn Basics Of Lift-And-Shift Migration To Azure

If you have missed our previous articles on Azure Networking, please check it in following links.

Part 1 – Basics of Azure Networking

  • *
  • *
  • *

Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1

Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2

Part 25 – Azure Load Balancer – Configure Basic Load Balancer -3

Part 26 – Azure Load Balancer – Outbound Connectivity

Part 27 – Azure Load Balancer – Outbound Rule – Lab Exercise

Part 28 – Azure Virtual Network NAT (Network Address Translation)

Part 29 – Azure Virtual Network NAT Gateway

Part 30 – Configure Azure Virtual Network NAT Gateway In Azure Portal

Part 31 – Azure Front Door

Part 32 – Azure Front Door 1 – Create And Configure Azure Front Door

Part 33 – Azure Front Door 2 – Priority Routing

Part 34 – Azure Front Door 3 – Configure Web Application Firewall (WAF) policy

Custom Domain Name

A custom domain is a unique branded label that’s connected to the IP address of a website. To visit a particular site, we can type its custom domain name into the address bar of your browser. 

Configure Custom Domain Name With AFD

In our previous article we have seen, how to configure Azure Front Door (AFD). The default host name for my ADF is https://ManasAFD.azurefd.net. Now in this article we will see how to configure a custom domain (http://www.manasmoharana-lab.com/) and associate it with our existing ADF.

I have brought one custom domain from GoDaddy domain provider. When I browse my domain (http://www.manasmoharana-lab.com) it shows the page as showing in the following figure before we associate the custom domain with my ADF.

Figure 1 : Azure Networking – Azure Front Door New custom domain

When we go to check the DNS entry of this domain from it’s administrator site it show the following entries in the DNS table .

Figure 2 : Azure Networking – Azure Front Door New custom domain

Now let’s configure the custom domain by following the below steps.

Step 1 – Go to the overview page of our existing Azure Front Door and select Front Door Design link from left menu as showing in the following figure.

Figure 3 : Azure Networking – Azure Front Door Configure Custom Domain

Step 2 – Now time to add our custom domain to the ADF. Click On + sign on the Frontends/Domains section as showing in the following figure. This will open Add a custom domain window for us.

Figure 4 : Azure Networking – Azure Front Door Configure Custom Domain 1

Step 3 – In the Add a custom domain window enter the custom domain name in Custom host name field as showing in the following image. In the following image we can also see thee is one error comes after we enter the domain name and it is asking to add a new CNAME record for our ADF frontend host name in the DNS record table of our custom domain.

Figure 5 : Azure Networking – Azure Front Door Configure Custom Domain 2

Step 4 – To enter a new CNAME DNS record in our custom domain, we need to go to control panel of our domain. As showing in the following figures, we have added a new CNAME entry and save it.

Figure 6 : Azure Networking – Azure Front Door Configure CNAME Record
Figure 7 : Azure Networking – Azure Front Door Configure CNAMAE Record

Step 5 – If we see in the following figure, after we added the CNAME entry in the DNS record set, the error on the ADF configuration page the error for the CNAME record is not visible any more. Now enter the custom domain name and click on Add button as showing here.

Figure 8 : Azure Networking – Azure Front Door Configure Custom Domain 4

After adding the custom domain name we can see one more following alert\warning as showing in the following image.

The host http://www.manasmoharana-lab.com is not present in any of the routing rules

Figure 9 : Azure Networking – Azure Front Door Configure Custom Domain 5

Step 6 – To resolve this warning, let’s click on the + sign of Routing rules section as showing in the above figure.

Figure 10 : Azure Networking – Azure Front Door Configure Custom Domain 5

As showing in the above figure, select our custom domain, as new Frontend/Domains and click Update button then click Save button to end the configuration.

Figure 11 : Azure Networking – Azure Front Door Configure Custom Domain 6
Figure 12 : Azure Networking – Azure Front Door Configure Custom Domain 7

Step 7 – Now we have done with our configuration, this is time to test our configuration. When I try to browse my home.html page, I got following response. That means, the configuration is still going on and it will take some time to complete the configuration.

Figure 13: Azure Networking – Azure Front Door Configure Custom Domain

So lets try after some time. As we can see in the following figure the response now comes from one of the backend server.

Figure 14 : Azure Networking – Azure Front Door Configure Custom Domain

With the above information, I am concluding this article. I hope this is informative to you. Please let me know if I missed anything important or if my understanding is not up to the mark.

Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more.

If you have any suggestion / feedback / doubt, you are most welcome. Stay tuned on Knowledge-Junction, will come up with more such articles.

Thanks for reading 🙂

Manas Ranjan Moharana

Around 11+ years of total IT experience and since last 10 years working on almost on all version of SharePoint .Interested in learning and sharing something new to be helthy.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: