2022-09-19 02:40:07 +07:00
|
|
|
# Alternate DNS setup
|
2022-07-06 12:33:35 +07:00
|
|
|
|
|
|
|
!!! info
|
|
|
|
|
|
|
|
Skip this step if you already use the included Cloudflare setup
|
2021-11-17 23:29:14 +07:00
|
|
|
|
2021-12-05 08:56:18 +07:00
|
|
|
Before you can access the home page at <https://home.example.com>, you'll need to update your DNS config.
|
2021-11-28 12:12:53 +07:00
|
|
|
|
2021-11-28 23:20:31 +07:00
|
|
|
Some options for DNS config (choose one):
|
2021-11-17 23:29:14 +07:00
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
- Change the DNS config at your domain registrar (already included and automated)
|
|
|
|
- Change the DNS config in your router (also works if you don't own a domain)
|
2022-04-04 03:19:32 +07:00
|
|
|
- Use [nip.io](https://nip.io) (suitable for a test environment)
|
2021-11-17 23:29:14 +07:00
|
|
|
|
2022-06-04 14:25:55 +07:00
|
|
|
## At your domain registrar (recommended)
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
The default configuration is for Cloudflare DNS, but you can change the code to use other providers.
|
2022-06-04 14:25:55 +07:00
|
|
|
|
|
|
|
## In your router
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
!!! tip
|
|
|
|
|
|
|
|
If you don't have a domain, you can use the `home.arpa` domain (according to [RFC-8375](https://datatracker.ietf.org/doc/html/rfc8375)).
|
|
|
|
|
2022-06-04 14:25:55 +07:00
|
|
|
You can add each subdomain one by one, or use a wildcard `*.example.com` and point it to the IP address of the load balancer.
|
|
|
|
To acquire a list of subdomains and their addresses, use this command:
|
2021-11-28 23:20:31 +07:00
|
|
|
|
|
|
|
```sh
|
|
|
|
./scripts/get-dns-config
|
|
|
|
```
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
## Use [nip.io](https://nip.io)
|
2021-11-28 23:20:31 +07:00
|
|
|
|
2022-04-04 03:19:32 +07:00
|
|
|
Preconfigured in the `dev` branch.
|