networking:dns:unbound:local_data
This is an old revision of the document!
Table of Contents
Networking - DNS - Unbound - Local Data
Local data, which can override A / AAAA addresses, can be configured to reply to DNS queries.
The format for local-data is:
local-data: "<resource record string>"
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
local-data: 'example. TXT "text"'.
NOTE: local-data is often associated with a local-zone
local-zone: <zone> <type> local-data: "<resource record string>"
If you configure local-data without specifying local-zone, by default a transparent local-zone is created for the data.
Examples
Type | Example | Comment |
---|---|---|
CNAME | local-data: “alias 3600 IN CNAME host.example.org.” | Only 1 CNAME per name, otherwise the client will not be able to resolve it (does not allow multiple entries like an A) |
MX | local-data: “my.localdomain. MX 10 mail.example.org.” | “@” Is not acceptable for unbound - replace the domain's FQDN instead. Unbound does not use the default domain in this specific case. |
SRV | local-data: “_sip._tcp 60 IN SRV 0 5 5060 pbx.example.org.” |
References
networking/dns/unbound/local_data.1607507730.txt.gz · Last modified: 2020/12/09 09:55 by peter