How do I change nameservers on azure domain? - azure

I have a domain registered with azure. I want to change the name servers so that it would point to my another server which contains cpanel hosting. I have tried changing the dns records but it didn't work. Is there any other way I could do this?

Unfortunately you cannot cannot remove or modify the pre-populated Azure DNS name servers.
You can add additional name servers to this NS record set, to support co-hosting domains with more than one DNS provider.
This applies only to the NS record set at the zone apex. Other NS record sets in your zone (as used to delegate child zones) can be created, modified, and deleted without constraint.
https://learn.microsoft.com/en-us/azure/dns/dns-zones-records#ns-records

Related

Adding MX record for Network Solutions email to Azure App Domain

I need to add an MX record into the app domain name purchased thru Azure portal.
The default form to add a record set adds the .domainname after the mx record name.
The problem is that Network solutions says the MX record name must be mx1.netsolmail.net. (So in the portal it becomes mx1.netsolmail.net.domainname.com which is not what I need)
How can I add a record set in my DNS zone for that domain that doesn't end in the domain name?
Per the answer below I changed the settings to the following
When you purchase a domain in the app service domain page, you actually have a new domain provider because App Service Domains use GoDaddy for domain registration and Azure DNS to host the domains.
If I am understanding it correctly, you would like to have an email delivered on your app domain name through Network Solutions but keep your domain through Azure. If so, you could refer to this Mailbox Setup and configuration to change/edit your MX and CNAME records in the Azure DNS zone.
Try to change the MX record to inbound.[domain name].netsolmail.net if your domain name was janesbagels.com, your Mail Server record would look like inbound.janesbagels.com.netsolmail.net. Also, you could change the other two CNAME records mail and SMTP.
For example,

Root domain in Azure FrontDoor configuration

I am trying to set up the routing for the Apex/root domain of my website(myrootdomain.eu) in Azure FrontDoor.
Reference :https://learn.microsoft.com/en-us/azure/frontdoor/front-door-how-to-onboard-apex-domain
Crated the Alias record with #.myrootdomain.eu in Azure DNS against the Azure resource as FrontDoor. A CNAME was created like this : afdverify.myrootdomain.eu
When i try adding the custom domain(myrootdomain.eu) into the frontend host of FrontDoor, it is giving the error CNAME record is not found. What additional step is required here .
Is there any setting or mapping to be done in my DNS 123domain or frontdoor for this domain : afdverify.myrootdomain.eu
What should be the mapping in domain provider (123domain in my case) for the naked domain(myrootdomain.eu) ?
Could not find any thing about that in the reference doc.
If you have hosted your domain in Azure DNS, (that is to edit the NS records and replace the NS records with the Azure DNS name servers in the registrar's DNS management page), you do not need to map in your original domain provider. It takes just a few seconds on my side to wait for the DNS taking place for the Apex/root domain in Azure Front Door.
After creating an alias record for zone apex, it creates a zone apex record pointing to your Front Door resource and also a CNAME record mapping 'afdverify' (example - afdverify.contosonews.com) to afdverify.<name>.azurefd.net.
If you have finished the above steps correctly, it usually takes some time for DNS propagation, you could check it via whatsmydns or viewdns. As the comment said, you can check if the CNAME is effective or not using nslookup or google dig tool.

Different name servers for different subdomains

Let's say I have a website example.com which I bought via a common domain registry nomcheap.com.
I want all traffic to a specific subdomain app.example.com to go to name server ns1.appserver.com so I can serve a specific user app.
I also want all other traffic (www.example.com, hello.example.com, *.example.com, etc.) to go to a different name server from a different provider ns1.squaresites.com so I can serve a general website (think something like a commerce Wordpress site).
None of the name servers are provided by the original domain registry nomcheap.com.
Is this possible? If so, any suggestions on how?
To point a subdomain to a name servers you need to create an NS record for the subdomain:
app.example.com NS ns1.appserver.com
This will make all queries go to ns1.appserver.com
*.example.com NS ns1.squaresites.com
The second record should catch all subdomains that don't have their own records (of any kind).
Delegating name server DNS responses can be done was the answer by #Lanexbg describes.
Realize that chaining your DNS lookups this way adds more time to DNS resolution and adds another potential point of failure in the resolution process. If the parent's name servers are down, they won't able to deliver the NS records to tell the client's resolver to continue the lookup process through a delegated name server.
Consider if using DNS "A" or "CNAME" records at the parent's DNS server would be acceptable alternative.
For more detail on how DNS resolution is delegated see this answer on serverfault.com:
How exactly should I set up DNS to delegate authority for subdomains?

What's the role (if any) of the original DNS registrar once a domain name has been delegated?

Let's say I register the domain name mydomain.com using GoDaddy (or any other registrar). Then I immediately delegate the domain to Azure (i.e change the NS records for the domain to point to Azure's name servers). As far as I understand I would then use Azure's DNS admin tools exclusively to add/change/delete DNS records fot my domain.com.
But do I still need to have any type of relation with GoDaddy (or whichever registrar I used to register mydomain.com)? For example, if I would like to delegate my domain once more from Azure to some other nameserver would I do this through Azure or GoDaddy? Or when I need to renew my domain name, would I have to do this through GoDaddy? Or if my GoDaddy account is hacked, would mydomain.com be at risk somehow? Or would GoDaddy be involved with mydomain.com in some other way I haven't considered?
The registrar is still key in almost every situation.
They are the people you pay your subscription/fee for the domain name (normally every few yrs depending on the domain).
They are the 'tag' holder (in the case of .uk names some info here) which means they are the ones you have to approach if you wanted to move your actual name (and payment) to another registrar (e.g if you decided you didn't like GoDaddy any more you could move to Namesco, or someone else) .com domains have a similar setup
Renewals and any changes to the account or domain name would go via the registrar - this includes any further/new delegation you might do.
If your registrar account gets hacked then anything associated with that account is 'at risk' this includes the hijacking of the domain name to be pointed anywhere.
Your registrar is usually the controlling name server (Check the whois records) so any query would hit them first before any delegations you have in place.
You talked about further delegation of your domain; so presuming one day you decide to move from Azure to AWS (say) then you would go back to your registrar portal and update the NS records to point to your new IP(s) on your new host.
You can either you manage all your DNS via your registrar, or delegate the NS records (as you have already) and run your own DNS Server. In your setup you use the Azure (or whatever) tools to manage your actual records, but you would need to go back to the registrar to manage the NS records that controlled the delegation of the domain. You should note that not all registrar will allow the delegation of NS records and in effect 'force' you to use there own portal/DNS tools so check carefully.
The short of it is - you still have and must maintain any relationship
with the registrar.

Configuring DNS records for Azure Websites

The instructions on Azure regarding configuring DNS records for Web sites are easily misinterpreted, and people often has issues with configuring the DNS records required, or instructing others (IT) how to make the required DNS changes.
This post is now obsolete, the azure documentation is great these days.
Multiple DNS records are required to assign a domain to a website in Azure.
For each domain and sub domain a pair of DNS records is required. The A record is required to point the domain at Azure, and the CNAME record is required as this validates the Azure website you are associating the domain to.
For a normal website, you are likely to need 4 records:
2x A Records
2x CNAME Record
E.g.
Type Name Value
A # 123.123.123.123
A www 123.123.123.123
CNAME awverify awverify.foobar.azurewebsites.net.
CNAME awverify.www awverify.foobar.azurewebsites.net.
With the IP Address being your IP address associated to your Azure website,
and 'foobar' being your Websites name.
Here we have two pairs of records, because one is for the domain, and one is for the 'www' subdomain. Please note a 'awverify' record is required for every sub-domain and the follows the format of awverify.subdomainname.
I have built a small tool that outputs this information, so that it can easily be copied and pasted, for when you need to share this information with IT, other people, etc!
Real Simple Azure DNS Record Tool
Microsoft Documentation on this Process
While working with App Service on Azure and godaddy as domain provider, I found out that we need below record to make it work.
ARecord ( with IP Address )
CName ( record for main site address
) and other CNAME ( for www )
TXT Record ( txt record for main site
address)
ARecod Image Example
CNAME Image Example
Txt Record Image Example
check the link for more detail

Resources