Azure – Networking – Part 35 – Azure Front Door 4 – Configure Custom Domain Name
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 :
- Configure Azure Command Line Interface ( Azure CLI) On Windows
- Configure PowerShell For Microsoft Azure Az Module On Windows
Previous Azure Series :
- Learn Basics Of Azure Networking In 100 Hours
- Learn Basics Of Microsoft Azure Storage services
- Learn Basic Of Azure Active Directory And Azure Identity And Access Management
- Azure DevOps – Learn at one place
- 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 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.
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 .
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.
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.
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.
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.
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.
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
Step 6 – To resolve this warning, let’s click on the + sign of Routing rules section as showing in the above figure.
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.
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.
So lets try after some time. As we can see in the following figure the response now comes from one of the backend server.
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 🙂
You must log in to post a comment.