aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com> 2021-03-18 06:39:10 +0000
committerGravatar coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com> 2021-03-18 06:39:10 +0000
commit3933b46fb9a318f4ddfc388f06bc2d59be62e838 (patch)
tree06aeb845d0ca737b0dd25e3b1e81f3b701d9ff1b
parent61b5cdb3526649fcc3356c71342a057f472a9985 (diff)
downloadcoredns-3933b46fb9a318f4ddfc388f06bc2d59be62e838.tar.gz
coredns-3933b46fb9a318f4ddfc388f06bc2d59be62e838.tar.zst
coredns-3933b46fb9a318f4ddfc388f06bc2d59be62e838.zip
auto make -f Makefile.doc
Signed-off-by: coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com>
-rw-r--r--man/coredns-bind.719
1 files changed, 18 insertions, 1 deletions
diff --git a/man/coredns-bind.7 b/man/coredns-bind.7
index 608268d88..2306bca15 100644
--- a/man/coredns-bind.7
+++ b/man/coredns-bind.7
@@ -14,7 +14,10 @@ another IP instead.
If several addresses are provided, a listener will be open on each of the IP provided.
.PP
-Each address has to be an IP of one of the interfaces of the host.
+Each address has to be an IP or name of one of the interfaces of the host. Bind by interface name, binds to the IPs on that interface at the time of startup or reload (reload will happen with a SIGHUP or if the config file changes).
+
+.PP
+If the given argument is an interface name, and that interface has serveral IP addresses, CoreDNS will listen on all of the interface IP addresses (including IPv4 and IPv6).
.SH "SYNTAX"
.PP
@@ -75,6 +78,20 @@ The following sample is equivalent to the preceding:
.fi
.RE
+.PP
+The following server block, binds on localhost with its interface name (both "127.0.0.1" and "::1"):
+
+.PP
+.RS
+
+.nf
+\&. {
+ bind lo
+}
+
+.fi
+.RE
+
.SH "BUGS"
.PP
When defining more than one server block, take care not to bind more than one server to the same