Custom domain

Every site runs at slug.sajto.page. If you have your own domain, for example www.podlipa.pl, you can connect it to the site. Sajto issues an SSL certificate for it automatically.

How it works

Connecting a domain takes two DNS records at the provider where you keep the domain (a registrar, hosting company or DNS service):

  • Name
    TXT record
    Type
    verification
    Description

    It proves you control the domain. It contains a token known only to you and Sajto.

  • Name
    CNAME or A record
    Type
    routing
    Description

    It sends visitors to the Sajto server. For ordinary addresses (e.g. www.podlipa.pl) it is a CNAME. For a bare domain (e.g. podlipa.pl) a CNAME is not allowed, so you use A records or ALIAS/ANAME if your provider offers them.

Sajto gives the exact record values after you add the domain. Below is only their pattern.

Step by step

  1. Ask the assistant to add the domain: “Connect the domain www.podlipa.pl to the podlipa site”. The assistant uses the domain_add tool. You can also see the domain in the panel, on the site details page.
  2. Copy the records. The response lists the records to create: TXT and CNAME or A. Show them exactly as given.
  3. Create the records at your DNS provider. Enter each record (type, name, value) in your domain provider’s panel.
  4. Wait and check. DNS changes take from a few minutes to several hours to spread. Tell the assistant “I added the records, check the domain” (domain_verify), or click the check in the panel.
  5. Done. When the TXT record is found, the domain becomes active and the site runs at https://www.podlipa.pl/. The certificate is created on the first visit, which can take a few seconds.

Record pattern

TypeNameValue
TXT_sajto-verify.www.podlipa.plsajto-verification=<token from the response>
CNAMEwww.podlipa.plthe server address given in the response

Always use the values from Sajto’s response: the token is unique to your domain.

Domain statuses

  • Name
    pending
    Type
    waiting
    Description

    The domain is registered, but the TXT record has not been found yet. Sajto checks it by itself every few minutes for 7 days.

  • Name
    active
    Type
    active
    Description

    The TXT record was found and the site is served at your domain over HTTPS.

  • Name
    error
    Type
    error
    Description

    The domain was active, but the verification record disappeared, so it stopped being served. Restore the TXT record and ask for another check.

Active domains are checked again once a day. If the TXT record disappears and three consecutive checks fail, the domain goes to the error state and stops being served. The ordinary slug.sajto.page address keeps working all the time.

Disconnecting a domain

Ask the assistant: “Disconnect the domain www.podlipa.pl” (domain_remove), or delete it in the panel. The site stops being served at that address immediately, and its files stay untouched. You can also delete the DNS records at your provider.

Limits

Up to 3 domains per site and up to 10 per account.

Common problems

  • Name
    The domain is still “pending” after a few minutes
    Description

    The DNS records have not spread yet. Check that the TXT record name is exactly as in the response (with the _sajto-verify. prefix) and wait. Do not add the domain again.

  • Name
    My provider does not allow a CNAME for the bare domain
    Description

    That is normal. Use A records with the addresses from the response, or an ALIAS/ANAME record.

  • Name
    The browser shows a certificate warning right after activation
    Description

    The certificate is obtained on the first visit. Refresh the page after a few seconds.

The full list of tools: Tools: domains.

Was this page helpful?