Cloudfront for naked domain name wordpress problem - amazon-cloudfront

I have created a WordPress website (mywebsite.com) and wanted to use cloudfront.
In the wizard, it asked me to add the below CNAME record in my DNS records.
Name Type Value
mywebsite.com CNAME xxx123.cloudfront.net
But when I tried to enter that in my DNS records I got an error that it is not allowed. What is your solution for this?
Note: I even tested this with Route 53 and got a similar error:
(InvalidChangeBatch 400: RRSet of type CNAME with DNS name mywebsite.com. is not permitted at apex in zone mywebsite.com.)

Related

Why CNAME record return 404 error on Azure DNS

Last week I configure a DNS Zone on Azure to use it with an App Service.
I have an A Record (for #) with the IP of the App Service, a TXT Record (for #) with the azurewebsite domain (required by Azure to prove that I own the domain).
If I enter mydomain.com in the browser I can see my site, but if I enter www.mydomain.com I cant, so I added a CNAME for www pointed to mydomain.com, waited for the propagation but when I tried to enter I get an Azure error page:
Tried the flushdns but nothing happen.
If I check the propagation for mydomain.com shows the right IP of the app service, if I check the dns propagation of www.mydomain.com for CNAME shows mydomain.com and for A shows the IP of the app service:
Anyone knows if I'm missing something? Here is my DNS Zone (with Ip's and domains removed).
Ok, just after posting the question I got the answer myself, what is missing is the Hostname in the App Service:
After added the www entry everything works fine with the DNS records described in the question.

how to connect cloudflare root domain to AWS Elastic Beanstalk

I wish to setup Cloudflare so that both mydomain.com and www.mydomain.com will reach the same Elastic Beanstalk host.
I've created a CNAME for the "www" subdomain, it works great.
But how do I handle the mydomain.com DNS root entry? It's currently an A record, pointing to some IP, but in order to point to EB, I need to have a CNAME like "www", correct? If so, is it safe to somehow replace the A record with a CNAME despite the fact this is a root DNS entry rather than some subdomain..
thanks.
All you need to do is add a Page Rule
Match: mydomain.com/* and Redirect (301) to https://www.mydomain.com/$1
Or http if you’re not using SSL. The $1 means to copy the path from the original request.
Delete the A record from Cloudflare DNS Panel
Add a record with type CNAME and value as yourdomainname.com
This doesn't work on most DNS providers. However, Cloudflare has a feature called "CNAME flattening" that allows a CNAME Record to co-exist with other records at a domain's root. In practice, it doesn't act like a CNAME because when someone looks it up, Cloudflare resolves it internally, finds an A Record and returns the value. (This is how Alias A Records work on AWS Route 53, for example.)

No CNAME records were found. Please add a CNAME record pointing to xxxx.azurewebsites.net

I have been trying to add a custom domain name to an application I hosted on azure and am trying to link it to a domain i bought in https://www.whogohost.com. I have tried everything as specified in the link https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain but to no avail, i keep getting the error (No CNAME records were found. Please add a CNAME record pointing to xxxx.azurewebsites.net).
Note: xxxx is just an alias for my App Name hosted in azure.
Please, is there anyone with relevant answers?
The error itself will be with the domain name provider you bought the domain through. You will need to make sure that you have properly setup the CNAME and A name records in your DNS settings on that website. Such as my domain I have through GoDaddy:

Azure DNS Zone name servers updated to Domain registrar but unknown host even after 4-5 hours

How to setup root domain ( example.com ) to point to Azure DNS zone? I am not sure whether it is because of propagation lag, but if I try to access example.com ( for example here ), it gives me unknown host.
My Steps:
Created the Azure DNS Zone for the example.com.
Created the www.example.com DNS zone.
Delegated subdomain to Azure DNS zone created in step #1 above for www Name server record.
Logged in to domain registrar and updated the 4 name servers of step 1 DNS Zone name servers as shared by portal.azure.com.
Note: It is 4-5 hours now and even now, accessing example.com ( dummy ) gives me unknown host. I tried the following as well and details are as below:-
a. Ping
List item
example.com => Gives following:
C:\Users\GURU>ping example.com
Ping request could not find host example.com. Please check the name and try again.
b. Telnet example.com on port 13782 but Couldntfind .. message.
c. nslookup gives below:
C:\Users\GURU>nslookup
DNS request timed out.
timeout was 2 seconds.
Default Server: UnKnown
Address: fd00::1
set querytype=soa
example.com
Server: UnKnown
Address: fd00::1
DNS request timed out.
But, I find the DIG and intoDNS showing all good, properly set the nameservers on registrar panel. I am not sure if I am missing anything.
Using DIG tool,
https://www.digwebinterface.com/?hostnames={changed_abc.com}&type=&ns=resolver&useresolver=8.8.4.4&nameservers=
changed_me.com. 299 IN SOA ns1-05.azure-dns.com. azuredns-hostmaster.microsoft.com. 1 3600 300 2419200 300
Hoping I did all right, and validating on anything I could have missed. Please suggest , if any.
The Apex domain now works perfectly following the cmdlets with corrections as recommended added. Ref: Azure DNS - Domains Not Being Found By Public Internet
I had my registrar with a A record pointing to webapp IP, and nameservers to that of azure DNS zone for example.com in place of default registrars.
But, www.example.com gives me unknown host but i checked each step as recommended still but not able to make out what I am missing during setup.
www.saffrongeek.com#8.8.4.4 (Default):
www.saffrongeek.com. 9 IN CNAME saffrongeek.com.
saffrongeek.com. 59 IN A 191.236.59.67
saffrongeek.com#8.8.4.4 (Default):
saffrongeek.com. 59 IN A 191.236.59.67
Okay, It appears that www.saffrongeek.com gets properly routed to Parent DNS zone on Azure from the Domain registrar recorded settings for Name servers. But was not getting delegated to child DNS zone.
On top of the settings in this picture, I added a A # record at Azure Child DNS zone pointing to IP.Now both root domain, saffrongeek.com and www subdomain works.
I am not sure if you have already found the answer to your issue, given this question is very old. I was having same issue and I found your post here helpful.
Coming to your issue that www.example.com is getting unknown host, I created an A record and pointed that to the VM public IP address. I figured we can set Load Balancer IP address as well here.
I created 2 A records
1) www.example.com: set www in name field when creating A record.
2) example.com: leave name field blank when creating A record

Windows Azure custom domain verifies but doesn't save

I have set up A and CNAME records. When I go to manage domains in the azure portal I enter alqalam.tv and www.alqalam.tv (my domain). The page shows that it has verified but when I save it shows an error. I have tried storage custom domain but it doesn't even verify.
My Azure website subdomain is alqalam.azurewebsites.net
I have made DNS lookup: http://www.hscripts.com/tools/HDNT/dns-record.php
and it shows
Domain Type Class Result
www.alqalam.tv. CNAME IN Alqalam.azurewebsites.net.
alqalam.tv. A IN 94.245.104.73
thank you
this did it for me:
Type Host Answer TTL
A alqalam.tv 94.245.104.73 300
CNAME www.alqalam.tv alqalam.azurewebsites.net 300
CNAME awverify.alqalam.tv awverify.alqalam.azurewebsites.net 300

Resources