The packages libunbound-dev and libunbound8 must be installed on debian/ubuntu hosts before compiling. AdditionallyCGO_ENABLED=1 must be set when building coredns if including the unbound plugin.
log
The following place holders are supported:
{type}: qtype of the request
{name}: qname of the request
{class}: qclass of the request
{proto}: protocol used (tcp or udp)
{remote}: client’s IP address, for IPv6 addresses these are enclosed in brackets: [::1]
{local}: server’s IP address, for IPv6 addresses these are enclosed in brackets: [::1]
{size}: request size in bytes
{port}: client’s port
{duration}: response duration
{rcode}: response RCODE
{rsize}: raw (uncompressed), response size (a client may receive a smaller response)
{>rflags}: response flags, each set flag will be displayed, e.g. “aa, tc”. This includes the qr bit as well
{>bufsize}: the EDNS0 buffer size advertised in the query
{>do}: is the EDNS0 DO (DNSSEC OK) bit set in the query
{>id}: query ID
{>opcode}: query OPCODE
{common}: the default Common Log Format.
{combined}: the Common Log Format with the query opcode.
{/LABEL}: any metadata label is accepted as a place holder if it is enclosed between {/ and }, the place holder will be replaced by the corresponding metadata value or the default value - if label is not defined. See the metadata plugin for more information.