El_Merendero
El_Merendero

Reputation: 709

Host a subdomain in Azure DNS using webs.com

My company created a web site using webs.com and, to host it, we are using a domain directly registered in webs.com (here I will call it contoso.com). Now I would like to create a subdomain (e.g. subdomain.contoso.com) to access a website hosted in Azure created for a new service offered by my company.

To do this I followed the official guide in the Azure documentation: https://learn.microsoft.com/bs-latn-ba/azure/dns/dns-delegate-domain-azure-dns. Briefly:

The problem is that the delegation verification failed (I can't access in to subdomain.contoso.com via the browser and nslookup returns "non-existent domain").

For this reason I tried to add two records in the Azure DNS zone:

After that, I waited for hours but nothing changed...

Upvotes: 1

Views: 3984

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28294

When you want to host subdomain test.contoso.com in Azure DNS, you should host your public domain contoso.com first in Azure DNS.

To delegate an Azure DNS subdomain, you must first delegate your public domain to Azure DNS. See Delegate a domain to Azure DNS for instructions on how to configure your name servers for delegation. Once your domain is delegated to your Azure DNS zone, you can delegate your subdomain.

You could follow this article to delegate an Azure DNS subdomain.

  1. Delegate your public domain contoso.com in Azure DNS.
  2. Create a zone for your subdomain test.contoso.com.
  3. Create a name server (NS) record for the subzone in your parent zone. For example, replace "engineering" with "test" in your scenario as below. enter image description here

Next, you could add A or CNAME record in the subzone test.contoso.com to point your website in Azure.

Upvotes: 3

Related Questions