If I am under DDOS attack , can I just change nameservers to Cloudflare to protect my VPS?

I can not use cloudflare protection because some scripts do not work on my server because of Cloudflare server timeout. So my question is, if someone attack my VPS with DDOS , can I just change the nameservers to Cloudflare and protect my VPS instantly after NS propaganda ?


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.

Accepted Answer

Hey friend,

That would not work, as changing your NS records will take a lot of time before it is seen by other servers that have recently cached a DNS entry for your domain.


Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.