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

Ashitha S 91 Reputation points
2023-05-04T17:07:47.05+00:00

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.
593 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Azarya 0 Reputation points Microsoft Employee
    2023-05-11T16:50:38.9333333+00:00

    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