How to set up Azure IP alias directly using DNS name? - azure

I'm setting up my website on Azure service. My DNS zone is 'xxx.io' (for example). I can create address such as 'main.xxx.io' or 'web.xxx.io' using Alias record sets and they work well. But I can't access the website directly using 'xxx.io' as address. How do I achieve this?
PS: my colleague says it used to work but now it doesn't, and he doesn't know how either.

you can create a A record called # with the value being IP address of your website. you cant have CNAME for # (root domain). Well you can, but its against the rules (afaik).

If your website is hosting on Azure service like virtual machines. You could just add an A record named # to point to the public IP address of Azure VM.
If your website is hosting on Azure web app service, you have to add an A and TXT type records in the DNS zone for using root domain. The app service plan(non-ASE) is multiple-tenant, you have to use TXT record to validate which website will be using the domain hostname.
The TXT record named #, the value is mywebapp.azurewebsites.net; The A record named #, the value is your website public IP.
You could refer to this picture and get more details here.

Related

Azure app service wrong redirection for new domain

I acquired a new domain name in Azure (let's say mynewdomain.net), assigned it to my app service, bought a certificate also in Azure and made the bindings. Apparently both the domain and certificate are properly configured.
When I invoke the domain in any browser like https://mynewdomain.net, I get redirected to https://mynewdomain.net/mynewdomain.net, and of course fails.
The problem must be very simple, but I have no clue! Can anyone point me in the right direction here?
Thanks!
To create a CNAME mapping for the www subdomain, create two records: CNAME and TXT records.
After you add the CNAME and TXT records, the DNS records page looks like the following example:
To map an A record, you need the app's external IP address. You can find this IP address on the app's Custom Domains page in the Azure portal.
After the records are added, the DNS records page looks like the following example:
For more details, you could refer to this article about mapping an existing custom DNS name to Azure App Service.

How to have domain for Azure VM

I did a research a few days about this. But still do not find any solution yet.
I have vm that host a website. The IP address for this website able to access from outside. But now i want to have custom domain for this vm.
Anyone know where I should refer to? Please share any link etc.
just create a A DNS record with your domain name registar, or use Azure DNS (you would need to delegate your domain to Azure DNS), or use Azure built-in DNS for your VM. If you dont have a domain - you need to buy it first.
https://serverfault.com/questions/143411/godaddy-linking-domain-name-to-ip-address
After you deployed an Azure VM, you also could configure an FQDN for this VM so that you can access the VM via Azure Provided DNS resolution which is mapped to the public IP address of Azure VM. Read how to create a FQDN. If so, you could directly access the VM via this FQDN.
Otherwise, you need to purchase a domain then use a CNAME to redirect your custom domain like www.example.com to this FQDN or use a A record mapping to the public IP address in your domain provider.

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 map a custom domain name created in freenom.com to a Windows Azure VM with Public IP

I have searched the net and cannot find an answer to this question. I have created a .ga domain with freenom.com.
I created two dns records in freenom.com. The A record maps to the public ip of the virtual machine and the cname record maps to the azure domain name - xxxxx.eastasia.cloudapp.azure.com. I set the ttl in both records to be 3600.
I give some hours for the dns records to propagate and try to do an nslookup on my .ga domain but it does not seem to exist. I try pinging, browsing the url but it seems that my domain does not exist.
Any help on this issue would be greatly appreciated.
For VM, you need to specify it on the Cloud Service level - did you do everything according to the official guidance?
If you use non-classic VM (ARM), then the situation is a little more complicated - you may go with that approach or with the Azure DNS service.
Your VM Name looks like : "name.cloudapp.azure.com". By default public IP address is created not static address that means you can't use DNS record on it.
If you want to use different domain name like "xxxxtest.com" then you have 2 options:
Use 'CNAME' DNS record
Use reserved IP record on Azure and 'A' DNS record
Refer below link for more details:
http://byalexblog.net/custom-domain-name-for-azure-vm

is there a way to change cloudapp.net DNS name in windows Azure

I setup my VM in windows Azure, and I didn't fully understand how it would all work together at the time, so I gave my cloud service a weird DNS name, and now I want to change it. Is there a way to change my .cloudapp.net DNS name? I really don't wanna have to delete my whole cloud service and all my VMs just to change the cloud service DNS. I know I can use a custom domain with CNAME or A Records, but that only affects production and forwarding etc... I want my cloudapp.net DNS to have a different name. Is that possible? Or do I have to delete everything and start over from the beginning?
It's currently impossible to change the name without deleting and recreating the service. I think this is because they have to reserve expensive (DNS) resources dynamically and they try to minimize the strain on these systems, but this is pure speculation.
It's an old post but I can help someone else.
When you created the VM (Cloud Service), it was automatically created a separated Storage. So you can create another Cloud Service - with the new name you want - using this Storage and delete the old one. I've already made it successfully.
Also, you can target an IP with a name from any domain name registration service.
For example, if on Azure you created a site called weirdclowndonkey.cloudapp.net and you would rather it be trustbank.com, you can do the following:
1) register a name anywhere (here's a search all ready for you: https://www.google.com/search?q=domain+name+registration )
2) find the ip address of your server on azure
3) enter that ip address as the target on the website of the domain name registration site.

Resources