Hello PaulMckenna-7202 ,
You can use Azure DNS alias records to access the website without prepending "www" to your DNS name.
An alias record set is supported for the following record types in an Azure DNS zone:
- A
- AAAA
- CNAME
For example, if your website is named www.contoso.com, your users can access your site using contoso.com without the need to prepend www to the DNS name.
Please refer : https://learn.microsoft.com/en-us/azure/dns/dns-alias
Kindly let us know if you need any further assistance on this issue from our end.
----------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.
To be clear, I need eg contoso.com to point to a website, an IP address is not a possible solution as the IP is not static
Hello @Paul Mckenna ,
Thank you for your update.
I believe you are looking for something like 301 (Permanent) redirect service for apex (naked) domains.
For e.g:
(1) The root domain (example.com) should 301 (permanent) redirect to the www CNAME (www.example.com)
(2) The www CNAME (www.example.com) should direct to the external website (other.com)
URL redirect services aren't a DNS service. They work at the HTTP level rather than the DNS level. Some DNS providers bundle a URL redirect service as part of their overall offering. This service isn't currently supported by Azure DNS.
The URL redirect feature is tracked in the Azure DNS backlog. Use the feedback site to register your support for this feature.
Please refer : https://learn.microsoft.com/en-us/azure/dns/dns-faq#does-azure-dns-support-url-redirects
Thanks,
Gita
Thank you for your response. Yes, most other DNS providers we work with provide a redirect functionality. If this is not available on Azure we will suggest to all our Azure users to use another service. Thanks for confirming.
I will register our interest in this feature now.
Hello @Paul Mckenna ,
Thank you for your response.
Kindly let us know if you need any further assistance from our end.
Thanks,
Gita
Hello @Paul Mckenna ,
I have posted the response again as an answer for better visibility. Please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread.
Thanks,
Gita
@Paul Mckenna did you ever figure out a solution for this? I'm up against the same problem and its quite ridiculous that you cant set a CNAME record with @
Sign in to comment
Hello @Paul Mckenna ,
I believe you are looking for something like 301 (Permanent) redirect service for apex (naked) domains.
For e.g:
(1) The root domain (example.com) should 301 (permanent) redirect to the www CNAME (www.example.com)
(2) The www CNAME (www.example.com) should direct to the external website (other.com)
URL redirect services aren't a DNS service. They work at the HTTP level rather than the DNS level. Some DNS providers bundle a URL redirect service as part of their overall offering. This service isn't currently supported by Azure DNS.
The URL redirect feature is tracked in the Azure DNS backlog. Use the feedback site to register your support for this feature.
Please refer : https://learn.microsoft.com/en-us/azure/dns/dns-faq#does-azure-dns-support-url-redirects
Kindly let us know if you need any further assistance on this issue from our end.
----------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.
Sign in to comment
maybe this problem is solved already
but i overcome the same issue using Azure front door
so, DNS zone, A record to alias Azure front door and www CNAME to front door
and from front door you set
Generally this kind of problem is solved by creating a wildcard record, I would say. So <anything or nothing>.example.com will point to the same server when there is no other matching records inside the domain.
i believe i have tried that too but didn't work
so you mean in the DNS Zone create CNAME recoard with *.example.com alias other.com right?
Sign in to comment
I recommend to take a look at the documentation at the link below
https://learn.microsoft.com/en-us/azure/frontdoor/front-door-url-redirect
@GitaraniSharma-MSFT is trying to say that some DNS services provides features to do the redirect, but this is not rule.
There is the Azure Front Door Service that could be the right choice to make a Redirect URL
https://learn.microsoft.com/pt-br/azure/frontdoor/front-door-overview
Sign in to comment
Activity