question

RizkiRinaldi-1073 avatar image
0 Votes"
RizkiRinaldi-1073 asked GitaraniSharmaMSFT-4262 edited

Change primary name server Domain in Azure

I have a domain on azure then I have hosting outside, how do I connect the domain and hosting?

azure-dns
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered GitaraniSharmaMSFT-4262 edited

Hello @RizkiRinaldi-1073 ,

Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

I understand that you have a domain in Azure that you are currently hosting outside of Azure on a 3rd party DNS registrar and would like to connect the domain and hosting meaning you would like Azure DNS to host and manage that external domain.

Azure DNS isn't the domain registrar. Azure DNS allows you to host a DNS zone and manage the DNS records for a domain in Azure. In order for DNS queries for a domain to reach Azure DNS, the domain has to be delegated to Azure DNS from the parent domain. Once your domain is delegated to your Azure DNS zone, you are able to configure the DNS records needed.

For a successful domain delegation, you need to follow the below steps:

  • Create a DNS zone in Azure.
    (Suppose you buy the domain contoso.net from a domain name registrar and then create a zone with the name contoso.net in Azure DNS.)

  • Retrieve name servers from the Azure DNS zone.
    NOTE : When you copy each name server address, make sure you copy the trailing period at the end of the address. The trailing period indicates the end of a fully qualified domain name.
    Some registrars append the period if the NS name doesn't have it at the end. To be compliant with the DNS RFC, include the trailing period.

  • In the registrar's DNS management page, edit the NS records and replace the NS records with the Azure DNS name servers. Use all four name servers, regardless of the name of your domain.

  • After you complete the delegation, you can verify that it's working by using a tool such as nslookup to query the Start of Authority (SOA) record for your zone. The SOA record is automatically created when the zone is created. It can take a while for changes to propagate through the DNS system.

Please refer : https://docs.microsoft.com/en-us/azure/dns/dns-domain-delegation
https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kaaven avatar image
0 Votes"
kaaven answered RizkiRinaldi-1073 commented

This is Dns records handled by the DNS zone. How to both set it up and change it is explained here: https://docs.microsoft.com/en-us/azure/dns/dns-getstarted-portal

Hope this helped.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have tried the guide in the link above, but when I checked the nslookup the primary server was not found

203042-image.png


0 Votes 0 ·
image.png (27.8 KiB)
lukemurraynz avatar image
0 Votes"
lukemurraynz answered RizkiRinaldi-1073 commented

Have you created a Conditional Forwarder on your AD controller in Azure to point to Azure DNS?

:DNS servers within a virtual network can forward DNS queries to the recursive resolvers in Azure. This enables you to resolve host names within that virtual network. For example, a domain controller (DC) running in Azure can respond to DNS queries for its domains, and forward all other queries to Azure. Forwarding queries allows VMs to see both your on-premises resources (via the DC) and Azure-provided host names (via the forwarder). Access to the recursive resolvers in Azure is provided via the virtual IP 168.63.129.16.:

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances?WT.mc_id=AZ-MVP-5004796#name-resolution-that-uses-your-own-dns-server

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, thanks for the answer, so far I still don't understand what it means, I have to create Conditional Forwarder in Active directory ?

0 Votes 0 ·