networking:dns:unbound:local_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:dns:unbound:local_data [2020/12/08 08:57] – peter | networking:dns:unbound:local_data [2022/10/08 11:48] (current) – peter | ||
---|---|---|---|
Line 9: | Line 9: | ||
</ | </ | ||
+ | <WRAP info> | ||
**NOTE: | **NOTE: | ||
Line 14: | Line 15: | ||
* If not matched exactly, the local-zone type determines further processing. | * If not matched exactly, the local-zone type determines further processing. | ||
* If local-data is configured that is not a subdomain of a local-zone, a transparent local-zone is configured. | * If local-data is configured that is not a subdomain of a local-zone, a transparent local-zone is configured. | ||
- | |||
* For record types such as **TXT**, use single quotes, as in <code bash> | * For record types such as **TXT**, use single quotes, as in <code bash> | ||
local-data: ' | local-data: ' | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | < | ||
+ | local-zone: < | ||
+ | local-data: "< | ||
+ | </ | ||
+ | |||
+ | If you configure **local-data** without specifying **local-zone**, | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | You can add locally served data with: | ||
+ | |||
+ | < | ||
+ | local-zone: " | ||
+ | local-data: " | ||
+ | local-data: ' | ||
+ | </ | ||
+ | |||
+ | You can override certain queries with: | ||
+ | |||
+ | < | ||
+ | local-data: " | ||
+ | </ | ||
+ | |||
+ | You can redirect a domain to a fixed address with: | ||
+ | |||
+ | < | ||
+ | # This makes example.com, | ||
+ | local-zone: " | ||
+ | local-data: " | ||
+ | </ | ||
+ | |||
+ | You can also add PTR records using local-data directly ("ipv4 name" or "ipv6 name" | ||
+ | |||
+ | < | ||
+ | local-data-ptr: | ||
</ | </ | ||
Line 33: | Line 76: | ||
https:// | https:// | ||
+ | |||
+ | https:// |
networking/dns/unbound/local_data.1607417872.txt.gz · Last modified: 2020/12/08 08:57 by peter