Add 'dig' example (#5)

This commit is contained in:
Deirdre Connolly 2020-06-15 15:52:02 -04:00 committed by GitHub
parent 048f11288e
commit c83c96971b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ Further down the rabbit hole, you can look at what `scripts/build.sh` and `scrip
To remove the seeder, run `scripts/uninstall_systemd.sh`.
### Testing
To see if your seeder instance is up and running, query it with something like
```
dig @my.seeder.ip mainnet.dnsseed.example.com
```
## DNS configuration
Let's say you want to configure seeders for the Zcash mainnet and testnet under the domain `dnsseed.example.com`. Then you would add an `NS` record for the subdomain `dnsseed` under your `example.com` configuration pointing to the address where you've deployed the seeder. The seeder will automatically respond to any subdomains as configured, so if your Corefile looks like [the default](coredns/Corefile) you'll end up with `mainnet.dnsseed.example.com` and `testnet.dnsseed.example.com`.