# Connecting a domain to a tracker via Cloudflare

In most cases, Cloudflare is used to proxy domains and change real ip addresses when traffic passes through this cloud service.

# Registration on CloudFlare and domain adding

To use CloudFlare you must proceed with registration there, and after it will be possible to add domains. Go to the main page of the site and click on the button +Add a Site

Add your domain to this field.

Go to the next page of settings and write the Keitaro tracker IP in the A records. Delete all unnecessary entries.

Confirm the changes and move on. Now CloudFlare gives us their NS records and asks us to replace them in the domain settings:

Copy them and go to the domain settings at the registrar (where you bought the domain), in our case it is Namecheap. Open the domain and put custom DNS in settings.

Put them and confirm changes.

Return to CloudFlare and confirm the changes. CloudFlare will leave for verification and now we have to wait for NS records to be updated. The procedure can take up to 24 hours, but in the case of Namecheap it usually takes up to 30 minutes.

# SSL

CloudFlare automatically issues an SSL certificate for your domain. Go to the SSL/TLS domain settings and check if the certificate is active:

CloudFlare automatically issues an SSL certificate for your domain, this certificate becomes active immediately after you activate dns on cloudflare and does not conflict with the certificate that is automatically issued by the tracker, although at first, you may see an error after adding a domain to the tracker

Error: Make sure your domain has only one A record that contains your server IP and no www, AAAA, or any other DNS records. DNS records may take up to 24 hours to update.

This is due to the fact that the certificate used on the domain was issued by cloudflare, not requested by the tracker. In fact, if you go, for example, to the Dashboar by https://domain.com/admin link - you will see a secure https connection in the url for this domain. I.e. the domain is fully working and ready to use. After NS records are updated completely the error will go away from the tracker.

# Parking the domain to the tracker

Open the tracker's admin panel and go to the Domains tab. Click on the Add button and add a new domain, remembering to turn on the HTTPS option.

Then click save and check the status:

If the status is Connected, it means that we have done everything correctly and the domain is ready to work.