no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tier_2_unbound [2019-03-12T23:15:33Z] (current) – created userspace | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | This simple config excerpt should be used as a basis for a Tier 2 Unbound installation: | ||
+ | < | ||
+ | server: | ||
+ | access-control: | ||
+ | hide-identity: | ||
+ | hide-trustanchor: | ||
+ | hide-version: | ||
+ | interface: x.x.x.x | ||
+ | minimal-responses: | ||
+ | log-queries: | ||
+ | root-hints: "/ | ||
+ | | ||
+ | # ratelimiting examples | ||
+ | ip-ratelimit-factor: | ||
+ | ip-ratelimit: | ||
+ | ratelimit-below-domain: | ||
+ | ratelimit: 100 | ||
+ | |||
+ | # See https:// | ||
+ | num-threads: | ||
+ | infra-cache-slabs: | ||
+ | key-cache-slabs: | ||
+ | msg-cache-slabs: | ||
+ | rrset-cache-slabs: | ||
+ | key-cache-size: | ||
+ | msg-cache-size: | ||
+ | neg-cache-size: | ||
+ | rrset-cache-size: | ||
+ | outgoing-range: | ||
+ | num-queries-per-thread: | ||
+ | |||
+ | local-zone: example. static | ||
+ | local-zone: local. static | ||
+ | local-zone: i2p. static | ||
+ | local-zone: home. static | ||
+ | local-zone: zghjccbob3n0. static | ||
+ | local-zone: dhcp. static | ||
+ | local-zone: lan. static | ||
+ | # etc... | ||
+ | </ | ||
+ | |||
+ | The above is by no means complete as there are many other options available. The important part for OpenNIC is the reference to the root-hints file which can be populated like this: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | and should look something like this: | ||
+ | |||
+ | < | ||
+ | |||
+ | ; <<>> | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 8 | ||
+ | ;; WARNING: recursion requested but not available | ||
+ | |||
+ | ;; OPT PSEUDOSECTION: | ||
+ | ; EDNS: version: 0, flags:; udp: 4096 | ||
+ | ;; QUESTION SECTION: | ||
+ | ;. IN NS | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | |||
+ | ;; ADDITIONAL SECTION: | ||
+ | ns2.opennic.glue. | ||
+ | ns2.opennic.glue. | ||
+ | ns5.opennic.glue. | ||
+ | ns5.opennic.glue. | ||
+ | ns6.opennic.glue. | ||
+ | ns8.opennic.glue. | ||
+ | ns8.opennic.glue. | ||
+ | |||
+ | ;; Query time: 231 msec | ||
+ | ;; SERVER: 75.127.96.89# | ||
+ | ;; WHEN: Tue Mar 12 23:00:00 UTC 2019 | ||
+ | ;; MSG SIZE rcvd: 256 | ||
+ | |||
+ | </ |