Change primary name server Domain in Azure

Rizki Rinaldi 21 Reputation points
2022-05-18T04:09:30.45+00:00

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

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
690 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,581 Reputation points Microsoft Employee
    2022-05-20T14:24:43.22+00:00

    Hello @Rizki Rinaldi ,

    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://learn.microsoft.com/en-us/azure/dns/dns-domain-delegation
    https://learn.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.


2 additional answers

Sort by: Most helpful
  1. Daniel Kåven 696 Reputation points
    2022-05-18T05:04:00.6+00:00

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

    Hope this helped.


  2. Luke Murray 11,091 Reputation points MVP
    2022-05-19T07:27:42.213+00:00

    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://learn.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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.