Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

dns

azure

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?

like image 924
user3270870 Avatar asked Aug 30 '16 12:08

user3270870


People also ask

How do I link my domain to Azure?

Add your custom domain name to Azure AD After you create your directory, you can add your custom domain name. 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.

How do I map an IP address to a domain name in Azure?

In the left pane of the app page in the Azure portal, select Custom domains. Select Add custom domain. Type the fully qualified domain name that you added a CNAME record for, such as www.contoso.com . Select Validate.

How do I connect an Azure VM to a premise domain?

Join the Azure VM to the on-premises Active Directory domain By manually remote logging into the VM: Go to System properties, click Change, provide the Domain name, and enter the credentials when prompted.


1 Answers

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/

like image 143
user3270870 Avatar answered Oct 13 '22 17:10

user3270870