# Set up your domain

Every company gets a working address at <your-slug>.pigi.io the moment it is created. To serve your booking site at a domain you own instead, add it under Company → Settings → General → Custom domains and complete the three DNS setup stages.

Source: https://help.pigi.io/guides/company-setup/getting-started/set-up-your-domain

## Quick answers

**What is my company's default web address?**
`<your-slug>.pigi.io`, where the slug is the URL you chose during signup. It works
immediately, needs no setup, and keeps working even if a custom domain later lapses.

**Where do I add a domain I own?**
**Company → Settings → General → Custom domains**, at
/school/admin/company/settings/domains. Click **Add domain**. Only company admins can open
this screen.

**What do I type in the Add a custom domain box?**
The bare host — `skyhigh.co.za`, with no `https://`, no path and no port. A pasted full URL
is trimmed down for you.

**What DNS records do I need?**
Two. A TXT record at `_pigi-verify.<your host>` carrying the verification token, which
proves ownership, and a CNAME (or A records for a root domain) pointing at the PiGi load
balancer, which routes the traffic. Both are shown with copy buttons inside the domain's
DNS panel.

**Do I need to buy an SSL certificate?**
No. PiGi sets up the certificate automatically within a few minutes of the first visit
to your domain.

**How often is DNS re-checked?**
Every 15 minutes automatically. Use **Check now** on a domain, or **Re-check DNS** above the
list, if you do not want to wait.

**What does "primary" mean?**
The primary domain is the one used in emails, invoices and shared links. Other live domains
still serve, but redirect to the primary.

## What this is

The Custom domains screen maps hostnames you own onto your PiGi booking site. Setup runs as
three observable stages — **Ownership**, **Traffic**, **Certificate** — and each domain row
shows which one it is currently stuck on rather than a single pass/fail flag.

## Before you start

- You must be an admin of the company.
- You need access to the DNS records for the domain, at Cloudflare, GoDaddy, Namecheap,
  Hover or wherever it is registered.

## Steps

1. Open **Company → Settings → General → Custom domains**.
2. Click **Add domain**.
3. Enter the bare host, e.g. `skyhigh.co.za`, and click **Add domain**. A toast confirms
   "Domain added — add the DNS record next" and the row opens its DNS panel automatically.
4. Copy the TXT record shown against the **ownership** stage and add it at your DNS
   provider.
5. Copy the CNAME (or A) record shown against the **traffic** stage and add it too. If only
   one record is listed, the platform has no traffic target configured — see Known
   limitations.
6. Click **Check now**. The stage pills across the row turn green as each stage completes.
7. Wait for the row to show **Live**. DNS usually propagates within minutes, occasionally up
   to an hour; the automatic 15-minute sweep will finish the job without you.
8. If you have more than one live domain, click **Make primary** on the one customers should
   see in emails and invoices.

## Fields

| Field | Required | What to enter |
|---|---|---|
| Domain | Yes | The bare host, lowercase, no protocol/path/port — e.g. `skyhigh.co.za`. |

## Known limitations

- If the platform has no CNAME target configured, the DNS checklist shows only the ownership
  record and the panel reads "No traffic record is configured for this platform yet — an
  administrator needs to set the CNAME target before this domain can go live." No amount of
  DNS work on your side will get past the Traffic stage until that is fixed centrally.
- A verified custom domain has its own isolated session. Signing in on `skyhigh.co.za` does
  not sign you in on `<slug>.pigi.io` or on pigi.io, and vice versa.
- The **Traffic** stage is never un-stamped once reached. If DNS is later removed, the row
  keeps showing Traffic as complete until the next probe records an error.
- Removing a domain is immediate and has no confirmation beyond the delete dialog. The
  default `<slug>.pigi.io` address always keeps working, so removing a custom domain does
  not take your site offline.
- The slug chosen during signup cannot be changed from any settings screen.

## Related

- [Sign up your company](sign-up-your-company.md)
- [Find your way around](find-your-way-around.md)
