Azure VM - linking the *.cloudapp.azure.com URL to godaddy? - azure

I am trying to figure out how to link my *.cloudapp.azure.com VM's DNS info to a GoDaddy subdomain off my company's site. I am not able to wrap my head around the directions on Azure.
The second part is we have a purchased wildcard SSL cert for our main domain on GoDaddy that we need to install. I can see you can purchase certs from Azure, however we have our own.
Thanks for any assistance anyone can provide in this matter.

You can use CNames to link Azure domains to your existing domain. Just créate a CName that point to your Azure DNS Name. Example:
you need vm.company.com to point to your vm called myvm in Azure.
créate CNAME vm that point to myvm.location.cloudapp.azure.com
As for the cert, copy it to the vm and import like you normally would.

A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. Finally, to publish your DNS zone to the Internet, you need to configure the name servers for the domain.
Each of these steps is described in the following steps:
Step1: First create the Azure Virtual Machines.
Step2: To get DNS addresses, you need create DNS zones with your domain name.
Go to Azure Portal => New => search DNS zones => Create DNS zones
Name= azurewala.com, Subscription, Resource Group, and Location
Step3: Once Azure DNS zones created you can see four Name Servers.
Step4: Go to GoDaddy control panel and click on the DNS.
Step5: Change the Nameservers by choose your new nameserver type as: Custom
Note: Copy and paste the Name Servers from Azure DNS to GoDaddy
And make sure you have to remove the extra dot before you save.
Step6: Open Created DNS Zones and add a record set
Name: www
Type: A
TTL: 1 Hours
IP ADDRESS: 52.176.102.178
Note: Give IP Address of the VM.
You may refer detailed workaround steps here: https://stackoverflow.com/questions/45449401/configuring-a-c‌​ustom-domain-name-fo‌​r-an-azure-vm-and-go‌​daddy/45453110#45453‌​110

Related

Binding custom domain for Azure Virtual Machine?

I want to bind my custom domain to my Azure VM.
The DNS name of my networking is, for example, xxx.westus2.cloudapp.azure.com (here I use xxx to replace my real DNS name label)
I have followed the answer from this link: https://stackoverflow.com/a/62185398
Azure VM has a default FQDN that you only could change the DNS label. If you want to add your own custom domain for that Azure VM, you could add a CNAME type DNS record like somename.my.domain.com CNAME myvmname.northeurope.cloudapp.azure.com or A type record like somename.my.domain.com A your Azure VM public IP address in your DNS domain my.domain.com provider.
But when I click my custom domain, it directs me to the following weblink. This is the same link when I click my public IP from AZURE. How can I make my custom domain directs to my xxx.westus2.cloudapp.azure.com?
Thanks for your help.
To allow the website on your Azure VM to be accessed with a custom domain, you can add A or CNAME records in your DNS provider to map the public IP address or FQDN of Azure VM.
For example, you want to access www.contoso.com, you can add CNAME record www in the contoso.com zone.
www CNAME xxx.westus2.cloudapp.azure.com
It usually takes a few hours to wait for DNS propagation worldwide. You can verify it via this website https://www.whatsmydns.net/.
Let me know if you have any concerns.

How to change the DNS Zone nameserver in Azure?

How do I change the nameserver in a Microsoft Azure DNS Zone to be something else? I'd like to use Cloudflare for my nameservers instead of the default Azure ones.
As far as I know, you can not change Microsoft azure DNS name server. Azure DNS is a hosting service for DNS domains that provides name resolution by using Microsoft Azure infrastructure. But Azure DNS supports co-hosting domains with other DNS services.
To set up co-hosting, modify the NS records for the domain to point to the name servers of both providers. Read here.
For example, you can add name servers from Cloudflare in the additional name servers in the NS record on the Azure portal.
The Name Server (NS) update are done on the domain registrar side. In 'Azure DNS', Microsoft just manages the domain they are not the registrar.
If you want Cloud Flare to manage your domain the NS record needs to be change on the domain registrar side.
If you bought an Azure App Service Domain, you get a DNS Zone (mine didn't work properly, and that's how I got to my solution). You also get a second resource from the domain itself (the App Service Domain resource). If you there click on the tab Advanced Management portal you will be redirected to a different site. From there you can go to the DNS tab at the top, select Manage Zones and fill in the domain you want to control.
From there, scroll down, and you'll see something like this.
As you can see, there are two nameservers. Those nameservers point to Azures DNS system. But here, you can actually change the nameservers.

Can an Azure NIC be pointed to records one created in an Azure DNS zone?

Is there a way to point an Azure NIC to the records one created in an Azure DNS zone?
At present Azure DNS doesn't support private DNS zones, i.e. those only available to your vnet. Also, the DNS servers specified in the "Add DNS server" box needs to be a recursive resolver, Azure DNS is an Authoritative DNS service, i.e. it will only serve answers for the zones it hosts.
We can't add Azure DNS zone to NIC custom DNS. The custom DNS required IP address, we can add the DNS server IP address to it.
For example, we can add 8.8.8.8 to it, also we can add local DNS server IP address to it(need VPN). Or create a Azure windows VM and install DNS role on it, and add this VM ip address to it.
If you want to use Azure DNS zone to manage your records, we can map your own domain name to DNS zone, and add name servers to your domain name(add this by domain name registrar manage webpage).
The following image shows an example DNS query about Azure DNS zone:
If you want to add record to DNS zone, and you want to map your 3rd party domain name map to Azure DNS zone, we can follow those steps in that answer.
Note:
Keep in mind Azure DNS is not the domain registrar, we should buy domain name from domain registrar(like godaddy, register.com).
Update:
If you just want to use domain name in your virtual network, there is no need to buy a domain, we can use AAD DS in our virtual network. Or we can deploy a VM and install DC on it, work as on-prem.
By the way, in the same virtual network, we can ping VM's name by default.

How to set custom domain name for nodejs app hosting on azure linux VM

I am hosting my nodejs project on microsoft azure. Now i wanted do custom domain but i don't know how to do, I have external go daddy domain.
Presently my project running on azure vm's default DNSName.southindia.cloudapp.azure.com domain, now I wanted to change my goDaddy domain. How can I do that, Can anyone help to do this
below is my vm's configuration.
According to your description, we can add A record to map your domain name to this VM's public IP address, or you can add CNAME to map your domian name to this VM's DNSName.southindia.cloudapp.azure.com.
About add an A record.
More information about add a record, strong textplease refer to this link.

How to create custom wildcard domain in azure

I'm having an issue with setting a custom wildcard domain on an Azure Website.
The azure website is demo.azurewebsites.net
And my custom domain is tenant1.demo.azurewebsites.net
I have done following steps : --
Step A:- Login into the portal.azure.com
Step B:- Then created zone with the following steps.
In this I filled all required information and select resource group as use existing. Because I have existing resource group. And click on create button.
C) After click on create button of above image it will show following image.
D) After that I crated record set. Please refer following image. I filled all information that required.
Name = *
Type = CNAME
TTL = 1
TTL unit = Hours
Alias = my existing domain
E) after that I created custom domain.
When I am going to create custom domain it show following error.
And my custom domain is tenant1.demo.azurewebsites.net
We can’t add subdomain to azurewebsites.net, because we are not the owner of azurewebsites.net.
Step B:- Then created zone with the following steps.
Until now, Azure doesn’t provide domain register service. Azure DNS Zone is used to host the DNS records for a particular domain. Azure DNS Service will answers DNS queries for records in the zone. It works as a name server. The prerequisites to use Azure DNS Zone is that you must be the owner of the domain. Please check the following note from Azure DNS Zone official document.
You do not have to own a domain name to create a DNS zone with that domain name in Azure DNS. However, you do need to own the domain to configure the Azure DNS name servers as the correct name servers for the domain name with the domain name registrar.
After you create a DNS Zone, to let the DNS record works, you also need to delegate your domain to Azure DNS by adding name server record in your domain register portal. Though you can add DNS record for demo.azurewebsites.net in your DNS zone as you mentioned in your post. But it won’t work until you have the right to configure the name server record in your domain register portal.

Resources