2018-01-04 12:53:07 +00:00
. \" generated with Ronn/v0.7.3
. \" http://github.com/rtomayko/ronn/tree/0.7.3
.
2018-10-18 09:47:03 +01:00
.TH "COREDNS\-BIND" "7" "October 2018" "CoreDNS" "CoreDNS plugins"
2018-01-04 12:53:07 +00:00
.
.SH "NAME"
\fI bind\fR \- overrides the host to which the server should bind\.
.
.SH "DESCRIPTION"
2018-02-16 09:26:48 +01:00
Normally, the listener binds to the wildcard host\. However, you may want the listener to bind to another IP instead\.
.
.P
If several addresses are provided, a listener will be open on each of the IP provided\.
.
.P
Each address has to be an IP of one of the interfaces of the host\.
2018-01-04 12:53:07 +00:00
.
.SH "SYNTAX"
.
.nf
2018-02-16 09:26:48 +01:00
bind ADDRESS \. \. \.
2018-01-04 12:53:07 +00:00
.
.fi
.
.P
2018-02-16 09:26:48 +01:00
\fB ADDRESS\fR is an IP address to bind to\. When several addresses are provided a listener will be opened on each of the addresses\.
2018-01-04 12:53:07 +00:00
.
.SH "EXAMPLES"
To make your socket accessible only to that machine, bind to IP 127\. 0\. 0\. 1 (localhost):
.
.IP "" 4
.
.nf
\& \. {
bind 127\. 0\. 0\. 1
}
.
.fi
.
.IP "" 0
2018-02-16 09:26:48 +01:00
.
.P
To allow processing DNS requests only local host on both IPv4 and IPv6 stacks, use the syntax:
.
.IP "" 4
.
.nf
\& \. {
bind 127\. 0\. 0\. 1 ::1
}
.
.fi
.
.IP "" 0
.
.P
If the configuration comes up with several \fI bind\fR directives, all addresses are consolidated together: The following sample is equivalent to the preceding:
.
.IP "" 4
.
.nf
\& \. {
bind 127\. 0\. 0\. 1
bind ::1
}
.
.fi
.
.IP "" 0
2018-01-04 12:53:07 +00:00