Skip to content

Commit

Permalink
Move unbound.conf.d examples to separate files
Browse files Browse the repository at this point in the history
Makes it easier for downstream distros to use the files.
  • Loading branch information
Jeremy Rand committed Dec 15, 2022
1 parent 46dcbb8 commit f877ec7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,11 @@ Using ncdns with a recursive resolver
-------------------------------------
Of course the daemon can also be used simply as an authoritative nameserver for
bit. directly. One way to do this is to run a recursive resolver (such as
Unbound) and configure it to serve the zone as a 'stub zone'. Here is an example
unbound configuration:
Unbound) and configure it to serve the zone as a 'stub zone'. An example
Unbound configuration is in `_doc/unbound.conf.d/ncdns.conf`.

server:
do-not-query-localhost: no
stub-zone:
name: bit.
stub-addr: 127.0.0.1@1153

If you don't want to use DNSSEC, also add:

server:
domain-insecure: bit.
If you don't want to use DNSSEC, an additional Unbound configuration is in
`_doc/unbound.conf.d/ncdns-insecure.conf`.

If you do want to use DNSSEC, see the instructions below.

Expand Down
2 changes: 2 additions & 0 deletions _doc/unbound.conf.d/ncdns-insecure.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
domain-insecure: bit.
7 changes: 7 additions & 0 deletions _doc/unbound.conf.d/ncdns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
server:
do-not-query-localhost: no
stub-zone:
name: bit.
stub-addr: 127.0.0.1@5391
stub-prime: no
stub-first: no

0 comments on commit f877ec7

Please sign in to comment.