diff --git a/README.md b/README.md index 35e892e..897b2da 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,16 @@ realm --zone ./domain.zone By default `realm` binds to port `53`, which usually requires root, so you may need to run `sudo realm --zone ./domain.zone`. +You can also specify any number of zone files by providing `--zone` multiple times: + +``` +realm --zone ./first.domain.zone --zone ./second.domain.zone +``` + ### Options * `--zone, -z` - the file file to load (e.g. `./domain.zone`), this argument is required * You may instead specify the environment variable `REALM_ZONE="./domain.zone"` + * You may specify `--zone` and `REALM_ZONE` multiple times * `--bind, -b` - the `[]:` to bind the server to (e.g. `0.0.0.0:53`), default is `:53` * You may instead specify the environment variable `REALM_BIND=":53"` * `--help, -h` - show help message diff --git a/doc.go b/doc.go index f352a89..28fb8ab 100644 --- a/doc.go +++ b/doc.go @@ -14,6 +14,7 @@ Realm will parse your server configuration from a DNS zone file see https://en.w To start a server: realm --zone ./domain.zone + realm --zone ./first.domain.zone --zone ./second.domain.zone --bind "127.0.0.1:1053" Full command usage: @@ -30,9 +31,9 @@ Full command usage: help, h Shows a list of commands or help for one command GLOBAL OPTIONS: - --zone, -z location to DNS zone file [required] [$REALM_ZONE] - --bind, -b ':53' '[]:' to bind too [$REALM_BIND] - --help, -h show help - --version, -v print the version + --zone, -z '--zone option --zone option' location to DNS zone file [required] [$REALM_ZONE] + --bind, -b ':53' '[]:' to bind too [$REALM_BIND] + --help, -h show help + --version, -v print the version */ package realm