GitHub

Custom domains

Point your own hostname at a site, and know how long the DNS wait really is.

Two kinds of address

  • A Freebuff-supplied domain — assigned when you deploy. Nothing to configure, fine for previews and internal work.
  • Your own domain — better for anything you will put on a business card. You keep the registrar, and you can move the hostname later.

Attach your domain

  1. Add the hostnameIn the site's settings, add the domain you want to serve. Use a subdomain such as docs if the apex is already doing something else.
  2. Create the DNS recordsAt your registrar, add the records Sites shows you. Keep the existing records the panel does not mention.
  3. WaitPropagation can take up to 24–48 hours. During that window the hostname may resolve for some networks and not others — that is normal, not a broken deploy.
  4. VerifyOnce the record resolves, the hostname serves the published environment over HTTPS.

Point DNS at the environment you actually want people to see. A custom domain attached while production is unpublished will stay offline no matter how correct the DNS is.

If it never resolves

  • Check for a typo in the record name — www and the apex are separate records.
  • Check for a second, conflicting record on the same name (an old A record next to the new one).
  • Query the record directly rather than trusting the browser cache: dig your.domain, or ask the agent to run it.
  • If DNS is correct and the hostname still 404s, the problem is publication, not DNS — inspect the site's status.

Keep one canonical address

Search engines treat every hostname as a separate site. Pick one address as canonical, link to it everywhere, and redirect the others to it. For a static site that is usually one <link rel="canonical"> per page plus a redirect from the Freebuff-supplied domain.