CNAME entry not working on NameCheap using Amazon Certificate Manager [closed] - amazon-web-services

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
Improve this question
I am trying to set up a few SSL certificates in Amazon Certificate Manager, but I am trouble getting them verified after adding the CNAME in Namecheap.
Here is an example of the CNAME verification entries at Amazon Certificate Manager
Here is an example of another domains CNAME entry at Namecheap
If I put the entire value of the Name entry into Host at Namecheap, the verification fails. I also get an error on some long domains I have, as the Name entry exceeds 60 characters.
Can anyone assist with the correct parts needed to verify via DNS using Namecheap?

In the CNAME record enter - _cff0cda88701846cbe7a34cd737378e2 as the host field and - _490287b8f448e2cca3862ebb4a51591.acm-validations.aws in the value field.
Once done wait for at least 1 hour for the changes to reflect.

If anyone is looking for NameCheap DNS record validation for AWS CloudFront ssl validation then please refer screenshot below. This NameCheap DNS record validation worked for me as of Jul 2019

Adding a more complete answer.
Some DNS provider like Namecheap appends the bare domain name to the DNS record. In effect, if you add the full record provided from Amazon Certificate Manager like so (replace example.com with your domain):
_cff0cda88701846cbe7a34cd737378e2.example.com
What you'll end up with is
_cff0cda88701846cbe7a34cd737378e2.example.com.example.com
To check if this is the case, after you have added the DNS record, run this command (on Unix)
dig +short _cff0cda88701846cbe7a34cd737378e2.example.com.example.com
If it returns the CNAME record, you have to omit the domain name from your DNS record so you won't get a duplicate domain name in there. Then run
dig +short _cff0cda88701846cbe7a34cd737378e2.example.com
You should get the corresponding CNAME record from it. The validation can take up to 48 hours.

Even though AWS includes it, do not include the domain name itself in the CNAME Host field for Namecheap (they apparently append it for you); just chop that off at the end. The value field is fine.
Give it half an hour.

namecheap.com does now allow a leading underscore in the Value field.
As specified in the AWS docs' Troubleshoot DNS Validation Problems ,
you can remove the underscore from the ACM-provided value and validate your domain without it.
In your case, the Value would be:
490287b8f448e2cca3862ebb4a51591.acm-validations.aws.
Where the trailing dot should still be permitted.

For any one using a subdomain like - api.example.com.
In the CNAME record enter - _cff0cdhash.api as the host field and - _490287b8f4hash.acm-validations.aws in the value field. As namecheap itself appends example.com to it. I was not able to figure out a way to make it work for www.api.example.com.

above worked for me except for the root domain validation ; there I had to add entire string _cff0cda88701846cbe7a34cd737378e2.example.com
instead of _cff0cda88701846cbe7a34cd737378e2. for the certificate to be issued.
For the others, _cff0cda88701846cbe7a34cd737378e2.www was enough. Hope it helps. Just did this today.

Related

Can't get a domain verified on AWS after transfer

After transferring a domain from another registrar to AWS, I can't get it verified in the Certificate Manager. I created a hosted zone, the CNAME records created by the Certificate Manager are there, I tried with the DNS tester - the records seem good. However it still says "pending validation". I tried a few times, waited a couple of days and it doesn't seem it will work.
I'm totally out of ideas, any help?
DNS validation require 2 things to be setup correctly. Record Name and Record Value
Check if you're correctly setting these in Route53. Reference Doc here: https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
Now 2 issues which are very common
In the Record Name part confirm that you're not adding your domain name in the value. _X is the only part you have to copy-paste. If you copy _X.YourDomain then 'YourDomain' part is duplicated
Record Value ends with . (a period / dot). Don't remove that period
You can verify the settings from https://mxtoolbox.com/ it has various configurations like A record, CNAME, DNS Validation, etc.

Domain name without WWW is not working on AWS

In the image are my current Hosted zone details on AWS. When I visit www.giftforhilt.com it works but when I visit giftforhilt.com it does not work.
How can I fix this?
Can you add another A record using the record name giftforhit.com, the same way that you have done for www.giftforhit.com. just now use without www. And one thing is better when you give the ttl(time to leave) 60 where you did 3600. Then, lets see what happens.

Configuring GSuite to work with route 53 - "MX record doesn't have 2 fields" error

I'm doing my best to follow GSuite's out of date instructions for routing emails to Gmail via a AWS Route 53 hosted zone (i.e. domain). Here are the outdated instructions:
I set the Values as instructed:
And I see:
Error occurred
Bad request.
(InvalidChangeBatch 400: MXRRDATANotTwoFields (MX record doesn't have 2 fields) encountered with '')
So it will not allow me to create the records.
I had this problem with the new AWS console, but it turns out the problem was me. I had not read the instructions carefully enough.
There needed to be a numeric value (not explained) before the domain name or ip address in the value input. When I added the number, this worked for me in the new console.
I was able to reproduce this exact scenario when I used the new AWS Route 53 interface.
To resolve it I selected the use the old console. link from the top.
I then pasted the values below and it worked.
1 aspmx.l.google.com.
5 alt1.aspmx.l.google.com.
5 alt2.aspmx.l.google.com.
10 alt3.aspmx.l.google.com.
10 alt4.aspmx.l.google.com.
For now use the old console for doing this would be my suggestion.
You need to enter more than one value. This is working fine
There's something wrong with the new Route 53 console. I tried the exact same things in the old console and it worked immediately.
I hope AWS fix this soon. For anyone experiencing this issue in the mean time, try simply reverting to the old console by clicking the link on the left hand panel:
So actually what MX record consists of is a priority and a host. The smaller the number the higher the priority. You can look it up on google as well.
It appears that the cause of the problem is the nature or length of the whitespace between the priority and the host on each line. Reducing all this whitespace - on each line - down to a single space resolved the matter for me.
This seem to worked for me in Route 53
https://support.google.com/domains/answer/3251241?hl=en&ref_topic=6293345#zippy=%2Cset-up-email-forwarding-with-custom-name-servers

Godaddy Email setup on AWS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have purchased Domain and Email with Godaddy.
Someone helped me to host my domain on AWS successfully.
I have to setup EMAIL.
I have details of TXT records, CNAME Records, MX Records, SRV records details from Godaddy.
How do i add these details on AWS, so that i will receive email?
Thank you in Advance
You can add each of these records via the the console.
Access your public hosted zone in the console.
For each record you have add it via the Create Record Set button.
If the domain is a subdomain then specify the subdomain value in the Name field. Select the type from the drop (CNAME, MX etc). Then in the value specify the value of your record
Steps to add these records (from the public hosted zone):
For CNAME record
Click "Create Record Set"
For Name value enter email
For Type select CNAME - Canonical Name
For Value enter email.secureserver.net
Click Create
For MX record
Click "Create Record Set"
For Name value blank
For Type select MX - Mail exchange
For Value enter 0 smtp.secureserver.net
Hit return and on the next line enter 10 mailstore1.secureserver.net
Click Create
For SRV record
Click "Create Record Set"
Leave Name value blank
For Type select SRV - Service locator
For Value enter 100 1 443 autodiscover.secureserver.net
Click Create
For TXT record
Click "Create Record Set"
Leave Name value blank
For Type select TXT - Text
For Value enter "v=spf1 include:secureserver.net -all –" including the ".
Click Create
More information available here.
You can make use of a feature called "Amazon Lightsail" to start with, go thru this link https://aws.amazon.com/about-aws/whats-new/2019/06/amazon-lightsail-partners-with-godaddy-to-simplify-wordpress-management/

Importing zone file from godaddy to AWS encountered this error

I am trying to upload zone file from godaddy to AWS, when I copy paste the zone file content to AWS and click upload, the following error appeared:
Error parsing zone file: Error in line 38: Invalid address: >>++PARKED1++<< (encountered after 1 correct records)
In line:
# 600 IN A >>++PARKED1++<<
It looks like your domain was 'parked' with GoDaddy at the time you tried to export you zone file. >>++PARKED1++<< is an internal variable which GoDaddy use in there DNS Db.
The actual record is an A record and you should just replace >>++PARKED1++<< with the external IP address of your hosting provider. (e.g 1.1.1.1)
After the change you should expect that line of the config file to read as;
# 600 IN A 1.1.1.1 (For example.)
The GoDaddy help page also says;
The exported data follows the BIND zone file format and RFC 1035. You
must manually edit the exported data before a BIND DNS server can use
it directly. These edits will differ based on the requirements of the
server to which you are uploading the exported file.
But sadly it does not provide any useful pointers to the reader as to what exactly needs to be changed...
If you are mapping to an elasticbeanstalk.com endpoint then you shouldn't use an IP address (as they may change) and instead change the record type to ALIAS and then add the name of your endpoint xxxx.elasticbeanstalk.com
I was stuck exactly here for a while, and I think I might have an answer.
In place of the -parked- / missing 'a record' value, use the IP of the current application with a temporary adress.
For example, the IP address of example.eu-north-1.elasticbeanstalk.com
If unknown this IP address can also be found at www.whatsmydns.net.
Just type in the temporary address (e.g. the EB url address above) and the IP will show.
I.e. this is the -A Record- to use in place of the word -Parked-... copy & paste.
A second update on this..
After a couple of days I learnt that method above did not work too well.
Essentially, the A - IPv4 address of my EB app kept changing every so often.
Instead I updated the A Record to ALIAS (by ticking Alias = Yes) then entered the address of my EB app. Example xxxxxx.elasticbeanstalk.com
So far this has worked..
Just remove that line and use import. After the import, you can add the alias to the IP address