khuedoan-homelab/docs/how-to-guides/alternate-dns-setup.md

35 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# Alternate DNS setup
!!! info
Skip this step if you already use the included Cloudflare setup
2021-11-17 23:29:14 +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 23:20:31 +07:00
Some options for DNS config (choose one):
2021-11-17 23:29:14 +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)
- Use [nip.io](https://nip.io) (suitable for a test environment)
2021-11-17 23:29:14 +07:00
## At your domain registrar (recommended)
The default configuration is for Cloudflare DNS, but you can change the code to use other providers.
## In your router
!!! 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)).
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
```
## Use [nip.io](https://nip.io)
2021-11-28 23:20:31 +07:00
Preconfigured in the `dev` branch.