User Tools

Site Tools


networking:dns:unbound:local_data

This is an old revision of the document!


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"'.

Examples

TypeExampleComment
CNAMElocal-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)
MXlocal-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.
SRVlocal-data: “_sip._tcp 60 IN SRV 0 5 5060 pbx.example.org.”

References

networking/dns/unbound/local_data.1607507208.txt.gz · Last modified: 2020/12/09 09:46 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki