networking:dns:unbound:local_data
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
networking:dns:unbound:local_data [2020/12/08 08:49] – created peter | networking:dns:unbound:local_data [2022/10/08 11:48] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Networking - DNS - Unbound - Local Data ====== | ====== Networking - DNS - Unbound - Local Data ====== | ||
+ | |||
+ | Local data, which can override | ||
+ | |||
+ | The format for local-data is: | ||
+ | |||
+ | <code bash> | ||
+ | local-data: "< | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * The query has to match exactly unless you configure a local-zone as **redirect**. | ||
+ | * 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. | ||
+ | * For record types such as **TXT**, use single quotes, as in <code bash> | ||
+ | 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: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Examples ===== | ||
^Type^Example^Comment^ | ^Type^Example^Comment^ | ||
Line 5: | Line 70: | ||
|MX|local-data: | |MX|local-data: | ||
|SRV|local-data: | |SRV|local-data: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// |
networking/dns/unbound/local_data.1607417378.txt.gz · Last modified: 2020/12/08 08:49 by peter