How To Map Our External Domain Name To Azure

In this article, we are going to point our external domain name to Microsoft Azure.

Introduction

If we have a domain name, we need the hosting space to host our website. Microsoft Azure offers different pricing tiers for hosting the websites. In this demo, we’ll learn how to connect our external domain name to Microsoft Azure.

Before we start this demo, we should have already installed WordPress on Microsoft Azure. Read the previous article to learn the process of installing WordPress on Azure here.

Step 1

Log into your account on Azure Portal here.

In this portal, we have already installed WordPress Virtual Machine named “eastechie”.

How To Map Our External Domain Name To Azure

Step 2

First, we need to copy the Public IP address of the virtual machine that is running our WordPress. In the Overview section, we can find our Public IP address. This IP address will be used in the DNS configuration part.

How To Map Our External Domain Name To Azure

Step 3

Click the “+Create a resource” link in the left sidebar menu. Then, type DNS in the search bar and select the “DNS Zone”.

How To Map Our External Domain Name To Azure

Step 4

In the DNS Zone option, click the “Create” button to continue the Zone installation.

How To Map Our External Domain Name To Azure

Step 5

On the "Create DNS Zone" page, select the Subscription and ResourceGroup in the Project Details part.

In "Instance Details", enter your domain name in the Name field. In this demo, our domain name is “eastechie.com”. Now, click the “Review + Create” button.
 
How To Map Our External Domain Name To Azure

Step 6

So, our deployment is successfully done and our DNS Zone “eastechie.com” is now available in the dashboard. So, let us click the “eastechie.com” DNS Zone.

How To Map Our External Domain Name To Azure

Step 7

In our DNS Zone page, click on the “+ Record set” link to configure the new “A” record using the Public IP address that we have copied in step 2.

  • Name field is blank.
  • Type field is “A”,
  • TTL field is 1 Hour
  • In the IP Address field, we can paste the Public IP Address that we have copied.

Click the “OK” button to save changes.

How To Map Our External Domain Name To Azure

Step 8

We have successfully added “A” record to the DNS Zone. Now, we have to configure a “CNAME” record. Click on the “+ Record set” link to configure the new “CNAME”.

  • The name field is www
  • The type field is “CNAME”,
  • The TTL field is 1 Hour
  • The Alias field is our external domain name, i.e., “com”

Click the “OK” button to save changes.

How To Map Our External Domain Name To Azure

Step 9

Okay, we have successfully configured both, the “A” record and the “CNAME” record. Our records are now appearing in the table.

How To Map Our External Domain Name To Azure

Step 10

In the DNS Zone page, we can find our “Name Server” information. Let us copy the four name servers to add our domain DNS setting.

How To Map Our External Domain Name To Azure

Step 11

Log into the domain name provider. In this demo, we can log into “Google Domain”. Under the domain, we have to click “DNS” and click “Edit” to change our name servers.

How To Map Our External Domain Name To Azure

Step 12

Now, paste the Azure Name Servers that we have copied in Step 10 and click “Save” to update the Name Server.

How To Map Our External Domain Name To Azure

Step 13

Now, we can check our website by typing our domain name into our browser’s URL bar. Yes, it’s configured properly and our homepage is loaded.

How To Map Our External Domain Name To Azure

Summary

Hope you have understood the configuration. If you have any questions or comments about this article, please feel free to leave them below.