Where to start
Open a project and click Add domain. The page has three steps and a summary. Nothing is created until you click Create domain. The server checks everything again at that moment: either the whole domain is created with its extras, or nothing is.
1. The address
The Address is the name in front of digitalweb.host. Entering shop gives you shop.digitalweb.host. When more than one ending is offered, pick it from the list next to the name. Each ending is separate: shop can be taken on one and free on another.

Address rules:
- Lowercase letters, digits and hyphens only.
- No dots: addresses are single-level.
- Can't start or end with a hyphen.
- A few names are reserved for DomainDock itself, such as
wwwandtunnel.
Availability is checked as you type. An address can't be changed after the domain is created. Where it goes can: see "Changing where a domain goes" below.
2. Where your app runs
Choose On a server or On my computer. For a computer, see Tunnels. For a server, enter the address in whichever form you have:
- A domain, like
myapp.example.com. DomainDock detects whether it speaks HTTPS or HTTP, so you don't need a port. - A full URL, like
https://myapp.example.com:8443. The protocol and port are taken from it. Any path is ignored: your whole site is routed. - A public IP address, like
203.0.113.10, plus the Port your app listens on, e.g.3000.
Private addresses (192.168.x.x, 10.x.x.x, 127.0.0.1) only work inside your own network, so they can't be used. A domain that points at a private address is refused too.
The connection test
When you leave the field, DomainDock connects to your app exactly the way it will for visitors and shows what it found: the domain lookup, the connection and your app's answer. Use Test again after changing something on your server.
If something is wrong, the test explains it and how to fix it, for example a firewall blocking the port, nothing listening on it or a certificate problem.

If your server isn't running yet, tick Use it anyway. The domain is created and starts working as soon as your app answers. Until then visitors see a status page.
Redirects
Some sites send visitors to another address, often www. or the version without it. Through DomainDock, that would take visitors away from your domain. The test catches this, shows where visitors end up and offers a one-click button to point your domain at the final address instead.

Redirects within your app stay on your domain. When your app sends visitors to a page on its own address (a login redirect to myapp.onrender.com/login, for example), DomainDock changes it to the same page on your DomainDock domain. Cookies your app sets for its own address are adjusted too, so sign-ins keep working. Your pages themselves are never changed, so links written into your HTML with the full address still point there.
3. Options
Paths, a backup server and password protection are shown from the start but stay greyed out until the address is free and the target passes the test (or you ticked Use it anyway). Switch on the ones you want and fill them in. Each is checked as you type. Create domain stays disabled while one has a problem.

All three can also be added or changed later on the domain's page.
Review and create
The Review box sums up what will be created. Click Create domain (or Create tunnel). You land on the domain's page, which shows Setting up and then Active, usually within a minute.
When there's something you only see once, such as a tunnel's agent command or the password you set, a confirmation screen shows it first. Copy it before you continue.
Changing where a domain goes
On the domain's page, open Routing and click Change target. The new address gets the same connection test. Visitors keep reaching the current target until the new one is set up, a few seconds later.
If you give a domain's target as a domain name, DomainDock looks it up again every 5 minutes. When your host moves your app to a new IP, your DomainDock domain follows on its own.
HTTPS
HTTPS is always on: Enable SSL (HTTPS) is shown checked and can't be turned off. Visitors always reach your domain over https://, with a certificate DomainDock renews for you. How DomainDock connects to *your* app (HTTP or HTTPS) is detected separately, so your server doesn't need a certificate of its own.
Copying and deleting
The copy icon next to a domain's address puts it on your clipboard and the arrow icon opens it in a new tab. To delete a domain, open its Settings tab and click Delete domain. You're asked to confirm, with a list of what goes with it.