update the manpages by running make -f Makefile.doc No other changes. Signed-off-by: Miek Gieben <miek@miek.nl>
95 lines
2.9 KiB
Groff
95 lines
2.9 KiB
Groff
.\" generated with Ronn/v0.7.3
|
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
.
|
|
.TH "COREDNS\-FILE" "7" "December 2018" "CoreDNS" "CoreDNS plugins"
|
|
.
|
|
.SH "NAME"
|
|
\fIfile\fR \- enables serving zone data from an RFC 1035\-style master file\.
|
|
.
|
|
.SH "DESCRIPTION"
|
|
The file plugin is used for an "old\-style" DNS server\. It serves from a preloaded file that exists on disk\. If the zone file contains signatures (i\.e\., is signed using DNSSEC), correct DNSSEC answers are returned\. Only NSEC is supported! If you use this setup \fIyou\fR are responsible for re\-signing the zonefile\.
|
|
.
|
|
.SH "SYNTAX"
|
|
.
|
|
.nf
|
|
|
|
file DBFILE [ZONES\.\.\.]
|
|
.
|
|
.fi
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBDBFILE\fR the database file to read and parse\. If the path is relative, the path from the \fIroot\fR directive will be prepended to it\.
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBZONES\fR zones it should be authoritative for\. If empty, the zones from the configuration block are used\.
|
|
.
|
|
.IP "" 0
|
|
.
|
|
.P
|
|
If you want to round\-robin A and AAAA responses look at the \fIloadbalance\fR plugin\.
|
|
.
|
|
.IP "" 4
|
|
.
|
|
.nf
|
|
|
|
file DBFILE [ZONES\.\.\. ] {
|
|
transfer to ADDRESS\.\.\.
|
|
reload DURATION
|
|
no_reload
|
|
upstream [ADDRESS\.\.\.]
|
|
}
|
|
.
|
|
.fi
|
|
.
|
|
.IP "" 0
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBtransfer\fR enables zone transfers\. It may be specified multiples times\. \fBTo\fR or \fBfrom\fR signals the direction\. \fBADDRESS\fR must be denoted in CIDR notation (e\.g\., 127\.0\.0\.1/32) or just as plain addresses\. The special wildcard \fB*\fR means: the entire internet (only valid for \'transfer to\')\. When an address is specified a notify message will be send whenever the zone is reloaded\.
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBreload\fR interval to perform a reload of the zone if the SOA version changes\. Default is one minute\. Value of \fB0\fR means to not scan for changes and reload\. For example, \fB30s\fR checks the zonefile every 30 seconds and reloads the zone when serial changes\.
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBno_reload\fR deprecated\. Sets reload to 0\.
|
|
.
|
|
.IP "\(bu" 4
|
|
\fBupstream\fR defines upstream resolvers to be used resolve external names found (think CNAMEs) pointing to external names\. This is only really useful when CoreDNS is configured as a proxy; for normal authoritative serving you don\'t need \fIor\fR want to use this\. \fBADDRESS\fR can be an IP address, an IP:port or a string pointing to a file that is structured as /etc/resolv\.conf\. If no \fBADDRESS\fR is given, CoreDNS will resolve CNAMEs against itself\.
|
|
.
|
|
.IP "" 0
|
|
.
|
|
.SH "EXAMPLES"
|
|
Load the \fBexample\.org\fR zone from \fBexample\.org\.signed\fR and allow transfers to the internet, but send notifies to 10\.240\.1\.1
|
|
.
|
|
.IP "" 4
|
|
.
|
|
.nf
|
|
|
|
example\.org {
|
|
file example\.org\.signed {
|
|
transfer to *
|
|
transfer to 10\.240\.1\.1
|
|
}
|
|
}
|
|
.
|
|
.fi
|
|
.
|
|
.IP "" 0
|
|
.
|
|
.P
|
|
Or use a single zone file for multiple zones:
|
|
.
|
|
.IP "" 4
|
|
.
|
|
.nf
|
|
|
|
\&\. {
|
|
file example\.org\.signed example\.org example\.net {
|
|
transfer to *
|
|
transfer to 10\.240\.1\.1
|
|
}
|
|
}
|
|
.
|
|
.fi
|
|
.
|
|
.IP "" 0
|
|
|