How to change fqdn to any other name? RRS feed

  • Question

  • I have a docker image running on my container instance. I was given a fqdn to access that application in browser. My problem is that the fqdn is very big and difficult to remember. So I want to give another dns name ( like a cname) to it. How can I do that on azure? 

    Wednesday, July 31, 2019 10:24 AM

All replies

  • HI Praneethaml,

    We can only configure the dns label in the Container instance. we cannot change or shorten the <region> part in the domain name.

    However you can create a CNAME record in your DNS server for the the domain name provided by ACI.

    Lets say you have a domain called which you have bought from the Domain registration service.

    Then you can add a CNAME in the domain registrar management page. or

    You can delegate that domain to the Azure dns and add that CNAME from azure portal itself. 

    If your organization has an existing DNS(Azure DNS or any DNS server), You can add a CNAME record and access that ACI with the CNAME.

    For the benefit of the community, Similar stack overflow question is here.

    Please let me know your comments.

    Wednesday, July 31, 2019 12:41 PM
  • Hi jakaruna,

    Thanks for the quick reply.  I already tried adding a hostname on dns server (cloud flare). But I'm still facing the issue in accessing the application with that cname. I forgot to mention that my application needs portnumber also to access it. That is, if I have to access my application using FQDN then I must give FQDN:3000 ( fqdn url followed by port number). However I can't add port number in CNAME record. 
    So what is the solution for this ? 

    Thursday, August 1, 2019 9:05 AM
  • HI,

    You cant add port number in the CNAME. for example if is your CNAME, Then you need to access it like only.

    You need to add the port name while accessing it in browser.

    If you want to avoid giving the port number, Then configure your application to run on the default port as per the protocol.

    For example, If you are running your application on port 80, Then while accessing it with http protocol, you dont need to give port. Because the default port number for the http protocol is 80 and thata automatically added.

    For https the default port number is 443.

    Let me now your comments

    Thursday, August 1, 2019 9:12 AM
  • Hi Praneethaml,

    Is there any update?

    Did the above reply help?

    Monday, August 5, 2019 5:53 AM