"Failed to validate nameserver records: a non DigitalOcean Name Server was found for [domainname].info domain"

My goal: I’m trying to generate SSL cert using Let’s Encrypt to be used by my load balancer. As I try to generate Let’s Encrypt Cert, however I received the error as mentioned

Failed to validate nameserver records: a non DigitalOcean Name Server was found for [domainname].info domain

What I’ve did Within Digital Ocean, my project has added my main domain (which sits in AWS Route53). Within the main domain that sets in project, I have also configured

  • my subdomain directs to my Load Balancer IP
  • main domain directs to as well as ns2, ns3

Within AWS Route 53, I have configured

  • 1 record name for my subodmain, under type NS and routing to as well as ns2, ns3

**** I have also read… I’ve read both the posts here, still facing the same issue.


What I’ve checked When checking the NS records here in for my domain and subdomain, here’s the result for A Records and NS Records.

Main Domain

  • A records: contains a few IP which is from AWS itself.
  • NS records: contains a few NS which is from AWS itself


  • A records: contains only 1 IP which is my Load Balancer IP from Digital Ocean itself.
  • NS records: empty

What seems to be my mistake?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 21, 2024
Accepted Answer

Hi there,

If you’ve added your main domain in DigitalOcean, then what you would need to do is to actually update your nameservers via your domain name registrar to the DigitalOcean ones.

You will not be able to have your main domain name simultaneously have two active DNS zones.

What you could do is to re-create all of your DNS records that you currently have in Route53 and add them under your DigitalOcean DNS zone. Then via your domain name provider, update your nameservers to the DigitalOcean ones.

To verify what your current nameservers for the main domain name are, you can use the whois command:


That way you will be able to fully manage all of your DNS settings via your DigitalOcean control panel.

Let me know if this works for you!



Hi Bobby, thanks for the direction, indeed it was nameserver issue

Earlier I created a Type NS (nameserver) record under AWS Route53 hosted zone pointing my domain to Digial Ocean NS, which is not enough, I needed to point my main domain only to Digital Ocean nameserver (removing AWS nameserver). Once this is completed, I’m able to create LetEncrypt cert successfully!

However, I’ve doubt to the point where you mentioned below

You will not be able to have your main domain name simultaneously have two active DNS zones.

Because right after the LetsEncrypt cert creation, I re-appended AWS nameserver into my domain, keeping the domain having 2 different nameserver (4 from AWS, 2 from DigitalOcean) and it still working as expected.

The only catch here is, at the next renewal of SSL Cert, I may need to remove the AWS nameserver again in order to create a new cert again.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel