Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set-up custom domain name in Azure Container Instance

I own a domain name with cloudflare nameservers. I've set up an Azure Container Instance with a running container hosted in Docker-Hub container registry. When i created the container instance i specified dns-name-label in azure's namespace, but i want to point my custom domain to this running container instead of the azure's one.

I've searching in Azure Docs for a way to point my custom domain name to this running container in ACI, but i didn't found any information about this configuration in Azure Container Instances. I did found some information regarding custom domains for blob storages, or cloud services, but none of those applied to ACI, as the custom domain setting doesn't appear in my ACI dashboard, neither in Azure CLI help commands.

Any information will be appreciated. I hope there is a solution to this that doesn't involve switching my NS to Azure's as cloudlflare is working just fine.

like image 467
Vichoko Avatar asked Jun 04 '19 00:06

Vichoko


People also ask

How do I create a custom domain name in Azure?

Sign in to the Azure portal using a Global administrator account for the directory. Search for and select Azure Active Directory from any page. Then select Custom domain names > Add custom domain. In Custom domain name, enter your organization's new name, in this example, contoso.com.

Can you add a custom domain for the Azure function?

You can configure a vanity or custom domain for Azure Function Apps, Public IP addresses, App Service (Web Apps), Blob storage, and Azure CDN.

Is it possible to custom DNS name in Azure?

You can configure Azure DNS to host a custom domain for your web apps. For example, you can create an Azure web app and have your users access it using either www.contoso.com or contoso.com as a fully qualified domain name (FQDN).


1 Answers

As for as I know, ACI exposes the DNS name using a dns-name-label in azure's namespace. The FQDN like customlabel.azureregion.azurecontainer.io. is provided by Azure DNS service. Unfortunately, there is no way to directly set the custom domain for ACI, but you could create a CNAME record in your DNS provider to redirect your subdomain like www.example.com to this FQDN. If so, you can access your ACI via subdomain www.example.com.

like image 115
Nancy Xiong Avatar answered Oct 28 '22 11:10

Nancy Xiong