Skip to content

Commit

Permalink
enumerate the config
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-heusel committed Dec 31, 2022
1 parent 08de284 commit ee4418b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/dns-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ An example usecase is to serve apps on the same host via a reverse proxy like NG

## Setup

### Change the configuration
### 1. Change the configuration

1. Change the `config.yaml` to contain the desired records like so:

Expand All @@ -25,11 +25,11 @@ dns_config:
...
```

Restart your headscale instance.
2. Restart your headscale instance.

Beware of the limitations listed later on!

### Verify that the records are set
### 2. Verify that the records are set

You can use a DNS querying tool of your choice on one of your hosts to verify that your newly set records are actually available in MagicDNS, here we used [`dig`](https://man.archlinux.org/man/dig.1.en):

Expand All @@ -56,7 +56,7 @@ grafana.myvpn.example.com. 593 IN A 100.64.0.3
;; MSG SIZE rcvd: 66
```

### Optional: Setup the reverse proxy
### 3. Optional: Setup the reverse proxy

The motivating example here was to be able to access internal monitoring services on the same host without specifying a port:

Expand Down

0 comments on commit ee4418b

Please sign in to comment.