Utilize CloudFlare as a DNS Server

[Image: cloudflare-logo.png]

This is an addition to Novice’s Guide to Setting up a Crypto-Currency Mining Pool please refer to that guide first.

We will be setting up a domain name to resolve on your already setup mining pool (MPOS Frontend). Cloudflare will be utilized. Cloudflare will be acting as your DNS (domain name system) server. Cloudflare also has some basic features that will help secure your pool’s frontend and make it faster.

CloudFlare Setup

Make sure you have already registered your domain name at a registrar of your choice. I am using namecheap. They had a promotion for free .website TLDs with the purchase of a different TLD. I went ahead and registered http://miningpool.website just for this guide. It may take up to 24 hours until cloudflare will “recognize” your domain, keep this in mind.

Go ahead and register for a free account on http://cloudflare.com, it will prompt you for your domain/website. Make sure to enter your domain name.

You’ll get a message that’ll tell you it’s analyzing your current DNS zones. This will take approximately 30 seconds or so.

You will get a screen that looks like this:
[Image: Oth7Laq.png]
The actual records will be different, depending on which registrar you used. This was just for namecheap.

Now go ahead and delete all the records except the “A” and “CNAME” record. You can delete them by clicking the gear icon and selecting delete record, like so:
[Image: OcjG4Ju.png]

 

The ones I am deleting on my site are highlighted in red here:
[Image: iT5aCIK.png]

 

Now all I have left is my “A” and “CNAME” records, should look something like this:
[Image: l1AhqLE.png]

 

You will have a message notifying you that you have no mx records for your domain, do not worry about this. You can setup your mail records another time or follow this awesome guide to use your gmail. https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/

Now let’s setup the records so they point towards your server’s IP.

Click on the “A” record’s gear icon on the right and select “Edit record”.
You will see “yourdomain.com” points to “some ip”. Change the IP to your server’s ip and save.

Now edit “CNAME” and where it says “is an alias of” change it to yourdomain.com and click save.

What we have just done is direct yourdomain.com points to your server IP and the CNAME “www” goes to yourdomain.com as well. So when a user types in http://www.yourdomain.com it still works.

Now that you have updated the records, click the green button on the bottom “I’ve added all missing records, continue >”

You’ll be at a page that let’s you select your plan, performance, etc… Leave everything the default setting and click the green “Continue >” button on the bottom of the page.

Cloudflare will now prompt you to change your nameservers, so go and login to your registrar and change your nameservers according to what Cloudflare tells you to. If you need help doing this, I suggest asking your registrar’s support department as I can’t explain it in directions since every registrar is different.

If you have updated your nameservers at your registrar, click the green “I’ve updated my nameservers, continue >” button on the bottom of the page.

Congratulations, Cloudflare has been setup and it’s pointing at your server. Keep in mind it may take anywhere from 24-72 hours for the nameservers to resolve. Once it has resolved, if users go to http://yourdomain.com it will go to MPOS Frontend. Please remember that this is part of Novice’s Guide to Setting up a Crypto-Currency Mining, if your server is configured differently then what was described in that guide then it may not work.

Zach A.

Mining Pool Operator & Mining Enthusiast. Jack of All Trades, Master of None.

1 Comment

  1. Lloyd   •  

    Zach, no images on the article.

Leave a Reply