Skip to content
Setup · spoke

DNS and server setup for a tracker

The tracker software is the small part. The DNS, certificates, firewall and monitoring around it are what determine whether it is still working in six months.

Reviewed and updated August 29, 2026 by the binom.courses editorial team · how we test

Self-hosting a tracker means running a public-facing service that handles money-carrying traffic. This page covers the layer under the tracker: records, certificates, firewall, monitoring and backups.

DNS records and TTL

RecordPurposeTTL guidance
A / AAAA for the tracking hostPoints redirects at your server300s while changing, 3600s once stable
CNAME for additional tracking domainsExtra domains sharing one serverSame as above
CAARestricts which CA may issue certificates for your domainLong - it changes rarely
PTR / reverse DNSSet on the server's IP by the hostSet once

The TTL point is practical rather than theoretical. Before any planned server move, drop the TTL to 300 seconds at least a day in advance, so that when you cut over, resolvers pick up the change in minutes rather than hours. A 3600-second TTL means an hour of traffic still hitting the old IP after you have switched.

Firewall: what should be open

PortOpen toNotes
80EveryoneNeeded for HTTP-01 certificate challenges; redirect everything else to 443
443EveryoneThe redirects themselves
22Your IPs onlyKey authentication, never passwords
Database portLocalhost onlyThere is no reason for the database to be reachable from the internet
Tracker admin panelYour IPs, or behind authThe admin interface should not be as exposed as the redirect endpoint

The database port is the one that catches people. Default installations occasionally bind to all interfaces, and a tracker database contains every click you have ever recorded.

From testing:

Check what is actually listening on public interfaces after installation rather than trusting the installer's defaults. One command, and it is how exposed database ports get found - by you rather than by someone else.

Certificate automation that does not fail quietly

Issuing a certificate is one command. Keeping it valid for years is the part that needs attention:

  1. Automate renewal with whatever your platform provides.
  2. Verify the automation ran at least once before relying on it. A renewal job that has never successfully executed is not automation.
  3. Alert 14 days before expiry from outside the server, so that a server problem does not also suppress the warning about it.
  4. Keep port 80 open if you use HTTP-01 challenges. Firewalling it is a common cause of renewals that worked for a year and then stopped.

The consequence of getting this wrong is total: every tracking link across every campaign breaks at the same moment.

Monitoring, ranked by value

Disk usage, alerting at 70%

The single highest-value alert in self-hosted tracking. A full disk stops writes and redirects with no visible error.

External HTTP check on the redirect endpoint

From outside your network, every minute. This catches the difference between 'the server is up' and 'redirects are working'.

Certificate expiry, 14 days out

Checked externally, so a server failure cannot suppress the warning.

Conversion-rate cliff alert

A campaign whose conversion rate drops to zero is usually a broken destination or postback, not a change in traffic quality. Fastest signal you have.

Query time on your two daily reports

Gradual slowdown is invisible day to day. Trending it tells you when the database needs attention or the box needs more RAM.

Backup job success and age

Alert if the most recent successful backup is older than expected, rather than assuming the job ran.

Backups, and the part everyone skips

Backups you have never restored are a belief. What a working backup practice looks like:

  • Automated and off-server. A backup on the same disk protects against nothing that actually happens.
  • Encrypted at rest, because it contains your entire click history.
  • Retention that covers slow discovery. Some problems are found weeks later; a 48-hour retention window will not have the good copy.
  • Restored to a scratch server quarterly. This is the step that converts a belief into a plan, and it is the one that gets skipped.

Planning a server move without losing conversions

1

Lower the DNS TTL a day ahead

To 300 seconds, so the cutover propagates in minutes.

2

Build and test the new server in parallel

Same version, restored data, reachable on its own temporary hostname. Push a test click through it before it handles anything real.

3

Cut DNS during your lowest-traffic hour

And keep the old server running and accepting postbacks. In-flight conversions from clicks that happened before the switch will still arrive at the old IP.

4

Keep the old server up for at least the attribution window

This is the step that prevents lost conversions. A seven-day window means seven days of overlap, not seven minutes.

5

Reconcile before decommissioning

Compare conversion counts across the boundary against the network's dashboard. Then raise the TTL back and shut the old box down.

Frequently asked questions

What DNS TTL should I use for a tracking domain?
3600 seconds while stable, dropped to 300 at least a day before any planned server move so the cutover propagates in minutes. A high TTL during a migration means an hour or more of traffic still hitting the old IP after you switch.
Which ports should be open on a tracker server?
80 and 443 to everyone - port 80 is needed for HTTP-01 certificate challenges. SSH restricted to your own IPs with key authentication only. The database port should be bound to localhost, and the admin panel should not be as exposed as the redirect endpoint.
Why do certificate renewals fail after working for a year?
Most often because port 80 was firewalled off, a DNS record changed, or a renewal hook broke after an update. Verify the automation has actually run successfully at least once, and alert fourteen days before expiry from outside the server.
What is the single most valuable alert to set up?
Disk usage at seventy per cent on the partition holding the click table. A full disk stops writes and redirects with no visible error anywhere you are watching, and it is the most common self-hosted outage by a wide margin.
How do I move a tracker to a new server without losing conversions?
Lower the DNS TTL a day ahead, build and test the new server in parallel, cut over during low traffic, and keep the old server running and accepting postbacks for at least the length of your attribution window - in-flight conversions still arrive at the old IP.
How often should I test my backups?
Restore one to a scratch server quarterly. Backups must also be off-server, encrypted, and retained long enough to cover slow discovery - a 48-hour window will not contain the good copy for a problem found three weeks later.

Built for people who read reports for a living

Dense, groupable, drillable tables rather than summary widgets. Thirty days to find out whether that suits you.

Try the interface →

Affiliate link. How this site is funded.