Error 502 | How should I replace my name servers on Cloudflare and hosting server



Hi I’m a newbie here with error 502.
I have two questions regarding how I should replace my name servers.

  1. Does my CloudFlare need my old NS which I got from my hosting server, Digital Ocean?
  2. Does my hosting server, Digital Ocean, need my old NS and new NS from CloudFlare?

Thank you for sharing your experience with me.


No, and no.

Cloudflare becomes your new name server. It usually grabs the DNS records from your old name server, but you need to double check that it got them all.

Your domain registrar tells the world which Name Server people need to use for your domain lookup.


Hi sdayman,

Thank you for the response.
You mentioned that I need to double check that Cloudflare got my old name servers all.
Would you inform how to check it as well?:slightly_smiling_face:

Also, do you mean that my hosting server, Digital Ocean, doesn’t need any name server?


Not your name servers, but your regular DNS records, such as IP addresses for your web server, MX records for email (if you have email for that domain), or any CNAME records.

You would compare your Cloudflare DNS page to the DNS records on your web host.


Morning. please help me, i don’t known exactly what i have to do to result Error 502 in my website


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