Problem with name servers and AWS

Hi, I’m having a problem with changing the name servers for a domain name hosted via AWS.

I’ve done this before for another domain name without a problem, so I’m a bit stuck.

I’ve changed the name servers on AWS to the ones assigned by Cloudflare. I’ve added A records that correspond to the A records for the Hosted Zone via AWS, and a CNAME record for the domain name.

It’s been stuck at pending for 3 days now.

Any ideas?

What’s the domain?

Hi @KianNH, it’s: hydraulic-pumps-uk-ltd.co.uk

It looks like your domain is still using AWS’s nameservers.

    Name servers:
        ns-1391.awsdns-45.org
        ns-1713.awsdns-22.co.uk   205.251.198.177
        ns-310.awsdns-38.com
        ns-567.awsdns-06.net

It’ll need changing at the registrar level (Gandi), as opposed to adding NS records at AWS.

1 Like

Hi @KianNH, changing the name servers was the first thing I did 3 days ago.

I checked before posting here and the Hosted Zone is using “miki.ns.cloudflare.com” and “seth.ns.cloudflare.com”.

You have changed the nameservers in AWS when they need to be changed at your registrar, Gandi.

hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      ns-1391.awsdns-45.org.
hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      ns-567.awsdns-06.net.
hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      ns-310.awsdns-38.com.
hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      ns-1713.awsdns-22.co.uk.
;; Received 748 bytes from 156.154.101.3#53(nsb.nic.uk) in 8 ms

hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      miki.ns.cloudflare.com.
hydraulic-pumps-uk-ltd.co.uk. 172800 IN NS      seth.ns.cloudflare.com.
;; Received 112 bytes from 205.251.194.55#53(ns-567.awsdns-06.net) in 4 ms
    Registrar:
        Gandi [Tag = GANDI]
        URL: https://www.gandi.net
3 Likes

We had a similar issue a few days ago.

AWS uses Gandi behind-the-scenes so you don’t actually change it on Gandi. It’s a bit confusing.

3 Likes

Anyways, can you ensure that you’ve changed them under the Registered Domains tab on the left of Route53 instead of in the Zones section?

As in, you should not edit the NS records yourself but go Registered Domains -> <name of domain> -> Nameservers (top right) and just delete the 4 that AWS gives you and add the 2 Cloudflare ones.

Simply changing the NS records in the zone itself won’t work.

3 Likes

Hi @mcfadyeni, I’ve changed the name servers within Registered Domains.

Do I still need to make changes via Gandi?

It is what @KianNH wrote, plus check your SSL configuration on your server as that does not seem to be configured correctly.

It depends. If you’ve actually used Route53 as your registrar (and it just appears as Gandi on Whois) then no.

If you’ve actually used Gandi yourself, then yes. But I expect that Route53 Registered Domains is enough.

And yeah, I’d check your SSL config.

2 Likes

Those changes looked to have worked.

I’m using Nginx, so I imagine I’ll need to do something with that to support SSL / TLS?

2 Likes

Yup. You’ll need to install a Cloudflare Origin Certificate on your server and then switch your SSL mode to Full Strict (not regular Full which is less secure) on the Cloudflare dashboard.

There’s a guide on how to generate a certificate and add it to NGINX here: Origin CA certificates · Cloudflare SSL/TLS docs

Yeah, I remembered doing this last time.

Everything’s working as it should be.

Much appreciated!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.