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
| Record | Purpose | TTL guidance |
|---|---|---|
| A / AAAA for the tracking host | Points redirects at your server | 300s while changing, 3600s once stable |
| CNAME for additional tracking domains | Extra domains sharing one server | Same as above |
| CAA | Restricts which CA may issue certificates for your domain | Long - it changes rarely |
| PTR / reverse DNS | Set on the server's IP by the host | Set 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
| Port | Open to | Notes |
|---|---|---|
| 80 | Everyone | Needed for HTTP-01 certificate challenges; redirect everything else to 443 |
| 443 | Everyone | The redirects themselves |
| 22 | Your IPs only | Key authentication, never passwords |
| Database port | Localhost only | There is no reason for the database to be reachable from the internet |
| Tracker admin panel | Your IPs, or behind auth | The 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.
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:
- Automate renewal with whatever your platform provides.
- Verify the automation ran at least once before relying on it. A renewal job that has never successfully executed is not automation.
- Alert 14 days before expiry from outside the server, so that a server problem does not also suppress the warning about it.
- 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
Lower the DNS TTL a day ahead
To 300 seconds, so the cutover propagates in minutes.
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.
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.
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.
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.