Tools: domains

Tools for connecting your own domain to a site. The chapter Custom domain describes it step by step, including DNS configuration.

domain_add

Connects a domain you already own (for example www.example.com) to a site, so that it is also served at https://www.example.com/ with an automatic certificate. This only registers a claim: nothing is served until you prove you control the domain. The response lists the DNS records to create at your DNS provider: a TXT record with a verification token, and a CNAME (or A records for a bare domain, e.g. example.com).

Parameters

  • slugtextrequired

    The site slug.

  • hosttextrequired

    The host name to connect, for example www.example.com. No https://, path, port or wildcard characters.

  • If both www.example.com and example.com should work, add them as two separate domains.
  • Up to 3 domains per site and up to 10 per account.

Example request to the assistant

Connect the domain www.podlipa.pl to the podlipa site.

domain_list

Lists a site’s custom domains with their state: pending (waiting for the DNS records), active (served over HTTPS) or error (was active but the verification record disappeared). For a domain that is not active it also returns the DNS records still to be created and the last problem found.

read-only, changes nothing

Parameters

  • slugtextrequired

    The site slug.

Example request to the assistant

Check the state of the podlipa.pl domain.

domain_verify

Checks right away whether the DNS records of a domain have been created. If the TXT record is found, the domain becomes active: the site is served at https://<host>/ and the certificate is obtained on the first visit (a few seconds). If not, the response says what is missing. DNS changes take from minutes to hours to spread, so wait and try again instead of adding the domain again.

Parameters

  • slugtextrequired

    The site slug.

  • hosttextrequired

    The host name added with domain_add.

  • Pending domains are also checked automatically every few minutes for a week.

Example request to the assistant

I added the DNS records, please check the domain www.podlipa.pl.

domain_remove

Disconnects a custom domain from a site. The site stops being served at that address immediately (the ordinary sajto.page address keeps working). You can also delete the DNS records. It affects only the connection: the site and its files are untouched.

Parameters

  • slugtextrequired

    The site slug.

  • hosttextrequired

    The host name to disconnect.

Example request to the assistant

Disconnect the domain www.podlipa.pl from the site.

Was this page helpful?