How can I Connect my domain name to my Azure Virtual Machine IP?

社会主义新天地 提交于 2019-12-20 03:19:51

问题


I am having a virtual machine on Azure running a website with IP Address http://13.67.182.83/

I am having also a domain name called nit-eg.com that I need it to point to the IP address

I changed the A records and CName to point to the IP but this made the domain name to be down and gave me the following error This site can’t be reached

www.nit-eg.com’s server DNS address could not be found. Search Google for nit ERR_NAME_NOT_RESOLVED

So that I changed the CName to point to the old site again and left the A records points to the new site

Now the old site is the one that is working but I need to make the new one working so that I expect that there is something to be done in the virtual machine itself to make the site running

Any suggestions?


回答1:


I found the solution after googling for some time I created a Fully Qualified Domain Name then I pointed my CName alias to the site URL

This link will be helpful https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-portal-create-fqdn/



来源:https://stackoverflow.com/questions/39227287/how-can-i-connect-my-domain-name-to-my-azure-virtual-machine-ip

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!