This shows you the differences between two versions of the page.
openbsd:dns:unbound [2019/11/21 14:44] jrmu created |
openbsd:dns:unbound [2020/07/22 08:32] (current) baytuch |
||
---|---|---|---|
Line 25: | Line 25: | ||
forward-zone: | forward-zone: | ||
name: "." | name: "." | ||
- | forward-addr: 185.117.154.144 | + | forward-addr: 185.117.154.144 |
- | forward-addr: 165.227.40.43 | + | forward-addr: 165.227.40.43 |
- | forward-addr: 217.144.132.169 | + | forward-addr: 217.144.132.169 |
- | forward-addr: 212.237.22.141 | + | forward-addr: 212.237.22.141 |
- | forward-addr: 165.227.108.86 | + | forward-addr: 165.227.108.86 |
</code> | </code> | ||
The forward-addr lines indicate which nameserver unbound will query. You can find a list of public servers on [[https://servers.opennic.org/|OpenNIC]]. | The forward-addr lines indicate which nameserver unbound will query. You can find a list of public servers on [[https://servers.opennic.org/|OpenNIC]]. | ||
+ | |||
+ | if you are using another server as a master, set forwarding from this server as a priority: | ||
+ | <code> | ||
+ | forward-zone: | ||
+ | name: "example.com." | ||
+ | forward-addr: 10.10.10.10@53 | ||
+ | forward-first: no | ||
+ | forward-no-cache: no | ||
+ | </code> | ||
+ | |||
+ | If you need to store local zones, add a block to the "server" section about it: | ||
+ | <code> | ||
+ | local-zone: "localhost." static | ||
+ | local-data: "localhost. 10800 IN NS localhost." | ||
+ | local-data: "localhost. 10800 IN SOA localhost. nobody.invalid. 1 3600 1200 604800 10800" | ||
+ | local-data: "localhost. 10800 IN A 127.0.0.1" | ||
+ | local-data: "localhost. 10800 IN AAAA ::1" | ||
+ | </code> | ||
To start unbound: | To start unbound: |