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?
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.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With