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/09 09:55] – [Networking - DNS - Unbound - Local Data] peter | networking:dns:unbound:local_data [2022/10/08 11:48] (current) – peter | ||
---|---|---|---|
Line 22: | Line 22: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
< | < | ||
Line 31: | Line 31: | ||
If you configure **local-data** without specifying **local-zone**, | 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 46: | Line 76: | ||
https:// | https:// | ||
+ | |||
+ | https:// |
networking/dns/unbound/local_data.1607507730.txt.gz · Last modified: 2020/12/09 09:55 by peter