Using Cloudflare for DNS

Cloudflare is a DDoS (Distributed Denial of Service) attack mitigation service and DNS provider you can use to protect your web site. In this guide, I walk through enabling this service. If you haven’t already, you can sign up for a Cloudflare account here: https://dash.cloudflare.com/sign-up

1. Once you have your account, click on the “add site” button in your dashboard.

2. Enter your domain name and click “Add site”

3. For this guide, we’re using the free plan. So go ahead and select it and hit “Confirm plan”.

4. Now you should see all of your domains records. You’ll want to make sure you leave the proxy enabled on every possible record as this will enable the DDoS protection.

5. On the next screen you’ll be given instructions on updating your domains NS records at your registrar so Cloudflare can control DNS. I’m using NameCheap, but the concept is the same with any registrar.

6. Once done, click “Done, check nameservers”. Don’t be worried if this doesn’t work the first time as DNS changes can take time to propagate.

Once you see the message below, you’ll know it worked.

And you’re done! Any requests to your website will be proxied through Cloudflare.  Just remember that you’ve changed your nameservers to Cloudflare’s, so any changes to your DNS needs to be made in Cloudflare.

Leave a Reply

Your email address will not be published. Required fields are marked *