networking:dns:unbound:views
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:dns:unbound:views [2022/10/08 10:54] – [Networking - DNS - Unbound - Views] peter | networking:dns:unbound:views [2022/10/08 11:19] (current) – peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
Unbound’s views can be used to serve local data depending on the source address a query is received on. | Unbound’s views can be used to serve local data depending on the source address a query is received on. | ||
- | * View Name must be unique. | ||
* Map views to requests using the **access-control-view** option. | * Map views to requests using the **access-control-view** option. | ||
* Views can contain zero or more **local-zone** and **local-data** options. | * Views can contain zero or more **local-zone** and **local-data** options. | ||
* Options from matching views will override global options. | * Options from matching views will override global options. | ||
- | * Global options will be used if no matching view is found. | ||
- | * With **view-first yes**, it will try to answer using the global local-zone and local-data elements if there is no view specific match. | ||
<WRAP info> | <WRAP info> | ||
Line 28: | Line 25: | ||
name: " | name: " | ||
local-zone: " | local-zone: " | ||
+ | view: | ||
+ | name: " | ||
+ | local-zone: example.com inform | ||
+ | local-data: ' | ||
+ | local-zone: refused.example.co.uk refuse | ||
</ | </ | ||
<WRAP info> | <WRAP info> | ||
**NOTE:** | **NOTE:** | ||
+ | |||
+ | * **name** must be unique. | ||
* **local-zone** configures a local zone. | * **local-zone** configures a local zone. | ||
Line 53: | Line 57: | ||
* **local-data-ptr** configures local data shorthand for a PTR record with the reversed IPv4 or IPv6 address and the host name. | * **local-data-ptr** configures local data shorthand for a PTR record with the reversed IPv4 or IPv6 address and the host name. | ||
+ | |||
+ | * **view-first** specifies whether to use Global options if no matching view is found. | ||
+ | * With **view-first yes**, it will try to answer using the global local-zone and local-data elements if there is no view specific match. | ||
+ | |||
</ | </ | ||
Line 116: | Line 124: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
</ | </ | ||
Line 132: | Line 140: | ||
https:// | https:// | ||
+ | https:// |
networking/dns/unbound/views.1665226477.txt.gz · Last modified: 2022/10/08 10:54 by peter