Got into the issue with the AWS domain. Here is what happened:
- Registered domain in AWS
- Created Hosted Zone, configure GMAIL MX records
- Changed name servers in AWS to point to the WIX NS
- Deleted the WIX site
- Changed name servers in AWS back to AWS name servers. (not the original ones, don't have them, using another AWS registered domain name servers)
Multiple problems now:
- Domain is not resolving (dig, nslookup) - AWS reports ("..[205.251.196.25] rcode=REFUSED for ***")
- AWS does not validate the certificate for this domain
- DNS validation creates records, but the certificate is stuck in pending state
- email validation also does not work, email is not sent to the registered domain owner address (check in promotions, spam etc, no email at all).
Thanks, Regards, Evgeny
Thank you Halod for the hint.
Here is a piece of code to lookup domain name across all AWS NS servers