networking:dns:unbound:configure_local_zones
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:dns:unbound:configure_local_zones [2020/12/09 09:45] – peter | networking:dns:unbound:configure_local_zones [2022/10/08 11:47] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Networking - DNS - Unbound - Configure Local Zones ====== | ||
- | |||
- | A number of locally served zones can be configured: | ||
- | |||
- | < | ||
- | local-zone: < | ||
- | local-data: "< | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * **deny** serves local data (if any), else, drops queries. | ||
- | * **refuse** serves local data (if any), else, replies with error. | ||
- | * **static** serves local data, else, nxdomain or nodata answer. | ||
- | * **transparent** gives local data, but resolves normally for other names. | ||
- | * **redirect** serves the zone data for any subdomain in the zone. | ||
- | * **nodefault** can be used to normally resolve AS112 zones. | ||
- | * **typetransparent** resolves normally for other types and other names. | ||
- | * **inform** acts like transparent, | ||
- | * **inform_deny** drops queries and logs client IP address. | ||
- | * **inform_redirect** redirects queries and logs client IP address | ||
- | * **always_transparent** resolve in that way but ignore local data for that name. | ||
- | * **always_refuse** resolve in that way but ignore local data for that name. | ||
- | * **always_nxdomain** resolve in that way but ignore local data for that name. | ||
- | * **noview** breaks out of that view towards global local-zones. | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | |||
- | Suppose you have a printer in your LAN. | ||
- | |||
- | You can connect to that printer by using its known IP address, like, for example, 192.168.1.100. | ||
- | |||
- | However, wouldn' | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | However, it is able to manage a small home LAN. | ||
- | </ | ||
- | |||
- | <file bash / | ||
- | private-address: | ||
- | local-zone: " | ||
- | local-data: " | ||
- | local-data: " | ||
- | local-data: " | ||
- | local-data-ptr: | ||
- | local-data-ptr: | ||
- | local-data-ptr: | ||
- | local-data-ptr: | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | The **private-address** directive prevents addresses in your LAN from being returned for public Internet names. This step prevents DNS rebinding attacks. | ||
- | |||
- | The **local-zone** directive defines all domains under sharewiz.net as local. | ||
- | |||
- | The **local-data-ptr** entries are optional and define reverse DNS information. | ||
- | |||
- | </ | ||
networking/dns/unbound/configure_local_zones.1607507143.txt.gz · Last modified: 2020/12/09 09:45 by peter