Using custom domain for an IIS app running on Azure VM - azure

Sent from my Windows 10 phone
I have a problem in seeing up a custom finding to reach the website which is running on Azure VM.
Recently I have set up a new VM on Azure Virtual Network and let it run an php application as IIS. I have successfully configured custom DNS label so I can reach to the website with "http://hogehoge.japaneast.cloudapp.azure.com".
However, I can't well get a way to set up a custom domain, for example, "http://hogehoge.net". I made some search and managed to create a new DNS Zone, and then I also added a CNAME record, which is shown in the attached image, to it.
But I can't reach to the site. I know it is probably matter of course since I didn't configure DNS registrar. Also I haven't yet purchased the domain.
I think I made some mistake in my procedure. Could anyone point out what is wrong?

The problem is that your machine is not using the Azure DNS nameservers by default. You should add the CNAME/A records in your domain registrar's records, not in Azure DNS.

Related

DNS Transfer from Plesk Domain Controller to Azure

Good Afternoon,
after 2-3 Days trying to move my Domain from a Webhoster to Azure, i need your Help.
My actual Webhoster has Plesk. Over Plesk i can access and change all the DNS Entrys.
https://learn.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns
Based on this Walkthrough i'll have created 4 Entrys at my actual WebHoster and the Verification of the Domain is allright. When i run the command
nslookup -type=SOA #mydomain# i see a azure dns.
https://learn.microsoft.com/en-us/azure/app-service/manage-custom-dns-migrate-domain
After that i wanted to create a Test App in Azure. Based on the above Walkthroughs i managed to set my Custom Domain for my App Service. I made this Settings at my old WebHoster and in my newly created DNS-Zone in Azure.
So far so good. So I have deactivated the local DNS Service in Plesk in order to move on to Azure that should manage my DNS now. So i'll have deleted the Custom Domain in my App Service and created it again but this time it should point to my Azure DNS. But in the Creation Dialog of Creating a Custom Domain it tells me that im not the owner of the Domain.
Im confused and floating somwhere in the Dark. Could some guys point to the right direction. Do i have to do additional Entrys in the Azure DNS?
I hope someone can understand my bad Descriptions :).
Thanks for every help
After you host your domain in Azure DNS, you only need to manage your DNS entry in the Azure DNS zone.
Thus, in the step of migrating an active DNS name to Azure App Service, you can create domain verification records in the Azure DNS zone.
Then you also need to add the custom domain to the web app and remap the active DNS records via A or CNAME record following that steps in the document.
Thanks Nancy for the answer.
i could solve the Problem. I found this ?-Button in Plesk that let you test the DNS-Zone on the Nameserver. There was an ip poping up that does not belong to an A-Reccord. But the weird thing is thtat this Ip-Adress also did not belong to the App-Service IP.
But as soon as i added this Ip everything went fine and is working now.
Thanks

Cannot link custom domain to azure website

There are certain variations to this question but none answered mine.
I have a custom domain aaaskills.mydomain.com pointing to azure website.
This was done by setting CNAME to aaaskills.mydomain.com -> azure website. This is all working fine. Good.
But I want to change the subdomain to skills.mydomain.com, so i updated the existing CNAME to skills.mydomain.com -> azure website. All good.
Now, in my Azure portal i'm trying to add a new hostname for new domain but the azure doesn't recognize the CNAME updated.
Now aaaskills.mydomain.com doesn't work and skills.mydomain.com is bringing up 404 not found and it is suggesting me to update custom domain in azure website.
Am i missing something here?
Domain ownership on azure website was resolved after awverify'ing the sub domain. I added CNAME with records like below to awverify.
CNAME('awverify.subdomain.domain.com','azure website url')
Double check to see if the CNAME and A records are appropriately added in your domain registrar.
Also it take some time for the new host to be reflected in the app's Custom domains page. Try refreshing the browser,Clear the cache and test DNS resolution again.
On a Windows machine, you clear the cache with ipconfig /flushdns.
If the issue still persists, kindly do let us know for further investigation.

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.

Azure cloud service Web App Not found -404

I've a webapp hosted in azure cloud service.
We would like to put the WAF infront of web app per setup below:
We have created a bladomain.com.au
The DNS record points to IMPERVA IP address
IMPERVA then points to bla.azurewebsites.net
If I access the site directly using bla.azurewebsites.net, it works with no issue.
However when I try to access bla.zurewebsites.net, it shows below:
I tried adding bladomain.com.au to azure web app custom domain but it shows the error message below:
Error:DNS record for 'bladomain.com.au' that points to
'bla.azurewebsites.net' could not be located. If you want to configure
A record you must first create CNAME record with your DNS provider..."
Bit confused with error message above, as CNAME for bladomain.com.au should point to Imperva....
Appreciate any help.
This usually happens when you move your site regions, for example you had your site on Europe DC and you moved to US DC
It takes some time for the DNS to switch the IP address of your new Website and point it to the right DataCenter
It usually takes from 10 min to 2 hour for the changes to sync across the glob
We have similar problem, we are getting 404 error after more than 48 hours. It works after only, we run ipconfig /flushdns on client machine. It works smoothly after that, but it virtually impossible to tell every client to do flushdns.
To resolve this issue you simply need to do one of below:
1. Create awverify.yourdomain and point it's CNAME to azure web apps. OR
2. Update your domain CNAME to point to azure Web Apps.

How to apply custom domain to Azure Linux server

New to Azure.
I need to point a custom domain to a Linux based Resource Group (Not sure if Resource Group is correct nomenclature).
Here are my steps.
I created a new Linux Virtual machine. (works great!)
It has a built in url: http://mysite.cloudapp.net/. This was
provided during the creation of the resource by Azure, is publicly
available, and works great. I want to customize the url and could
not find any DNS type settings for this particular resource.
In order to customize the domain I created a new Web App and pointed
it to the MySite Resource group, purchased a new domain
(MyAwesomeSite.com) within Azure and associated it to
the Web App. My hope here was that the new domain would magically
point to the MySite resource, it didn't.
When I go to the new url (MyAwesomeSite.com) I see a standard 'Web app successfully
created' message not the Linux server.
Can someone point me in the right direction.
You're misunderstanding some things. Resource groups are simply a container and don't have runtime implications. A Web App is a completely different resource from a VM, it is just an self-contained website, and doesn't affect the VM at all.
To give your VM a custom domain name: make sure your Linux VM has a public IP address, and then go to your registrar and create an A record to that IP Address with host #. Then create a CNAME record with host www to whatever the URL of the machine given by Azure is.
This should work although you may need to change your Apache or Nginx config.
Ok 2 things here, you have 2 resources here
1. A Linux VM
2. A Web App - which is a PAAS based service
Both provide a default URL from azure
your site could be at either , I am not sure where but lets wager that you have it at the LinuxVM which has this default url all you need to do is go to your domain provider and create a CName which points to the "Azure Default URL" of this VM and then go to the Dashboard->Configure->Manage Domains and provide the CNAME here.
These steps do well if you are using manage.windowsazure.com , if you are using the portal.azure.com then select your app or the VM - go to settings->Routing->customdomains & SSL settings.
This link should be able to help you http://candordeveloper.com/2013/04/16/how-to-forward-a-godaddy-domain-to-azure/
Know more about VM and Webapps
1. https://azure.microsoft.com/en-in/documentation/articles/choose-web-site-cloud-service-vm/
2. https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-dotnet-create-visual-studio-powershell/

Resources