How to configure google domains to point to Azure webapp - azure

I have domain on google domains and I want it to point to my Azure Web app.
I have followed the documentation of Microsoft and this topic and SO.
My actual configuration on Google Domains look like this:
Name server:
Use custom name servers
ns31.domaincontrol.com
ns32.domaincontrol.com
Registered hosts:
hostname: mywebsite.com
ipv4: 40.122.xxx.xxx
ipv6:
Custom ressource records:
# A 1h 40.122.xxx.xxx
# TXT 1h "mywebsite.azurewebsites.net"
awverify CNAME 1h awverify.mywebsite.azurewebsites.net.
www CNAME 1h mywebsite.azurewebsites.net.
Then I try to add a new custom Domain name on my web app but when I try to "mywebsite.com" or "www.mywebsite.com" Azure can't know if I own the domain ...
We have waited more than 48hours and checked all the typo but didn't see any mistake.
Do we need to something more on Azure ? Did I missed something ?
Thank you for your answer
EDIT:
My current ressource records now look like this:
# A 1h 40.122.xxx.xxx
# TXT 1h "mywebsite.azurewebsites.net"
www CNAME 1h mywebsite.azurewebsites.net.

In this case, the following records are not correct. It will be like this.
# TXT 1h mywebsite.azurewebsites.net
awverify.www TXT 1h mywebsite.azurewebsites.net
www CNAME 1h mywebsite.azurewebsites.net
The entry with the awverify subdomain is used to "prove" to Azure that you own that domain when you migrate a live site and its DNS domain name to App Service that DNS name is already serving live traffic. If your custom domain has not been used for live traffic yet. You do not need to add such awverify subdomains in the DNS zone, just remove it.
Moreover, the TXT record you need depends on the DNS record you want to migrate. For examples, see the following table (# typically represents the root domain):
You can use dig web interface to check the DNS records propagation. Once the DNS propagation is established, you do not need the awverify subdomains and remove them.
Get more details: Migrate an active DNS name to Azure App Service

Related

WWW domain on azure

I am trying to configure a www domain on azure. I want to have website under this domain. My domain is "legia.fitness". I have created the DNS zone as follows:
On this picture you see 4 DNS servers. I have delegated my domain that I bought at home.pl to those servers:
And this doesn't work. When I try to browse legia.fitness I get "ERR_NAME_NOT_RESOLVED" error. What am I doing wrong?
Your Azure DNS zone does not have any A or CNAME records for www or # so the name cannot be resolved to an IP address.
Add a new A record with the label # set to the IP address of your Azure website, and another A record with the label www also set to the same IP address.
Alternatively, create CNAME records (both # and www) and set them to your Azure Website's name (e.g. yourwebsite.azurewebsites.net). CNAME records are aliases of existing A or CNAME records, but are slower to resolve which is why I prefer A records.
You haven't directed the domain anywhere yet.
You have a DNS zone that works. I can see the SOA records on Dig web interface.
Now you have to add CNAME/A records to the DNS zone to direct the traffic to where you want it.
Here is a guide for Azure Web Apps: https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-custom-domain-name
If you use something else, you'll need to find its guide.

Custom domain verification failing with dreamhost and firebase

The custom domain verification is not working with Dreamhost hosted domain. The instructions specify to add the DNS TXT entries at domain registrar. But since the domain is hosted on dreamhost, domain registrar (GoDaddy) doesn't allow to edit the DNS entries. So I created DNS entries at the dreamhost panel. But even after 48 hours the verification keeps failing. Any ideas why?
I checked a similar question here but it doesn't help -
Unable to Verify Custom Domain with Firebase Using Namecheap
For gandi, you need to do the following (pro tip: edit your zone file in expert mode, it's simpler to understand what is being saved)
# 10800 IN TXT "firebase=SITE_NAME"
# 10800 IN TXT "globalsign-domain-verification=KEY"

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

Azure Websites DNS

I have an azure website at yis3.azurewebsites.net - I have promoted this to be a "shared" site so that I can use a custom domain. I have the domain yorkshireimagescanning.co.uk that I bought from 123-reg.co.uk. I have configured this to give a CName record with dnsname of "awverify" and destination of awverify.yis3.azurewebsites.net.
I've waited over 12 hours and checked on digwebinterface.com and all looks good but when I click to "Manage custom domains" from the Azure portal , I enter a domain name of "yorkshireimagescanning.co.uk" but it won't accept it.
Please help
* Edit *
I've now waited a couple of days for domain propagation. Here's a screen grab from my domain registrar:
In the azure portal I've tried to add the following custom domains for the yis3.azurewebsites.net site but it won't accept any:
awverify.www.yorkshireimagescanning.co.uk
www.yorkshireimagescanning.co.uk yorkshireimagescanning.co.uk
awverify.yorkshireimagescanning.co.uk
Here's a screen grab from the portal:
To use yorkshireimagescanning.co.uk
To use your domain without the www. prefix you need to add an A Record in addition to the CNAME you've added for "awverify".
First, make sure you've added the domain to the Azure portal by following the instructions under "Set the domain name in management portal" here.
Next, follow the instructions under "Configure an A record for the domain name" on the same page. This involves pointing your domain directly at the IP address of the Azure web site. You should then have added 2 DNS records in total:
CNAME awverify.www awverify.yis3.azurewebsites.net
A xx.xx.xx.xx (your website's IP address)
I've marked the next option as "preferred" because it points your domain at the Azure hostname "yis3.azurewebsites.net" instead of directly at the IP address. The IP address of your Azure website won't change, but if you ever need to deploy your website elsewhere it will have a different IP, so there will be a delay while the DNS change propagates.
To use www.yorkshireimagescanning.co.uk (preferred)
To use your domain with a www. prefix you need to add another CNAME record in addition to the one you've already added.
First, make sure you've added the domain to the Azure portal by following the instructions under "Set the domain name in management portal" here.
Next, follow the instructions under "Configure the CNAME on your domain registrar" on the same page. This involves adding a CNAME that points "www" to your Azure website's hostname (yis3.azurewebsites.net). You should then have added 2 DNS records in total:
CNAME awverify.www awverify.yis3.azurewebsites.net
CNAME www yis3.azurewebsites.net
A note about domain forwarding: Don't use 301 forwarding unless your site has been permanently moved. Use 302 for temporary redirection. More details here.
I finally figured out what was wrong. I was deploying a new version of an existing site but the old version still had www.yorkshireimagescanning.co.uk set on the custom domains page. Once I deleted it then I was able to add the domain on the new azure site.

Hosting root domain (mydomain.com) with Windows Azure Shared Website?

I've been working on trying to get my own domain, for example mydomain.com, hosted in Azure Websites.
I upgraded/scaled to change my setting to "Shared".
I added CNAME record from www.mydomain.com to mydomain.azurewebsites.net.
I added www.mydomain.com to my website in azure under "Manage Domains", and it allowed me to add it successfully.
I am able to browse successfully to the website with www.mydomain.com.
I changed the A record for mydomain.com to point to the IP address listed under the Manage Domains section of the Azure website.
The CNAME and A record have propagated based on testing on my machine and on centralops.net DNS lookup tools.
If I browse to mydomain.com I get a 404. www.mydomain.com works as expected.
Can anyone help?
Step by step. This is working for me.
1 - In your DNS registrar create a CNAME record like following.
Name = awverify.mydomain.com
Value = awverify.mydomain.azurewebsites.net
TTL = 86400
2 - In Azure panel, add mydomain.com to your custom domains. It should show green check.
3 - Go back to your DNS registrar's web site and add an A Record for your custom domain using to IP provided to you by Microsoft in Azure Portal.
Name = mydomain.com
Value = 64.49.121.33
TTL = 7200
More info here.
I can think two options:
a) The Azure web server needs to be configured to browse your site with both www.mydomain.com and mydomain.com. Maybe you have configured only one in "Manage Domains"
b) mydomain.azurewebsites.net. resolves to a different IP than mydomain.com (the A Record you added in mydomain.com is wrong)
you need to work with a DNS provider that allows you to forward the A record to a DNS (Go Daddy provides this option) - i.e. www.mydomain.com points to mydomain.azurewebsites.net and mydomain.com is forwarded to www.mydomain.com

Resources