How to map IP address using dns zone and create cname record

Ashitha S 86 Reputation points

Hi all,

I have a website running on specific port(say for example -5090 port). If i use a dns name i can map the IP address. This is one option. But i need to add cname records. In this case i cannot use dns name and need to use dns zone. Hope I'm right. Even in the created dns zone, when I map an A record to an IP address, I'm unable to map the IP and get the website. Seems like only dns name for virtual machine is able to map ip address. Am I missing something in the configuration? Created a dns zone and created an A record which maps to the IP address of the Linux VM where the website is running on 5090 port. This is still not able to map the IP address and get the website. Please check and support on this.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
449 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Azarya 0 Reputation points Microsoft Employee

    You have 2 different problems there:

    1. you need to "map" IP to domain - make the DNS updates- with the domain name registrar, or setup a zone and set Azure Public DNS servers primary DNS for your domain, again it must be done under TLD registrar
    2. You can not set IP:PORT on DNS level.
    0 comments No comments