Reputation: 7947
I have DNS records for a web-app service, also hosted with Azure.
The site works if I do not prepend www
on the url and sends back the following page if I do prepend it:
Here is my A record (I saw something about creating this):
I have looked everywhere I cannot find any good answers.
In other DNS management services I would just do this:
but I cannot do that here.
Upvotes: 0
Views: 205
Reputation:
You should set CNAME to your Azure websites URL
New-AzDnsRecordSet -ZoneName contoso.com -ResourceGroupName "MyAzureResourceGroup" `
-Name "www" -RecordType "CNAME" -Ttl 600 `
-DnsRecords (New-AzDnsRecordConfig -cname "contoso.azurewebsites.net")
This looks like it is useful. It provides the full process:
https://learn.microsoft.com/en-us/azure/dns/dns-web-sites-custom-domain
Upvotes: 1