* For caddy v1 in our org This RP changes all imports for caddyserver/caddy to coredns/caddy. This is the v1 code of caddy. For the coredns/caddy repo the following changes have been made: * anything not needed by us is deleted * all `telemetry` stuff is deleted * all its import paths are also changed to point to coredns/caddy * the v1 branch has been moved to the master branch * a v1.1.0 tag has been added to signal the latest release Signed-off-by: Miek Gieben <miek@miek.nl> * Fix imports Signed-off-by: Miek Gieben <miek@miek.nl> * Group coredns/caddy with out plugins Signed-off-by: Miek Gieben <miek@miek.nl> * remove this file Signed-off-by: Miek Gieben <miek@miek.nl> * Relax import ordering github.com/coredns is now also a coredns dep, this makes github.com/coredns/caddy fit more natural in the list. Signed-off-by: Miek Gieben <miek@miek.nl> * Fix final import Signed-off-by: Miek Gieben <miek@miek.nl> |
||
---|---|---|
.. | ||
bind.go | ||
log_test.go | ||
README.md | ||
setup.go | ||
setup_test.go |
bind
Name
bind - overrides the host to which the server should bind.
Description
Normally, the listener binds to the wildcard host. However, you may want the listener to bind to another IP instead.
If several addresses are provided, a listener will be open on each of the IP provided.
Each address has to be an IP of one of the interfaces of the host.
Syntax
bind ADDRESS ...
ADDRESS is an IP address to bind to. When several addresses are provided a listener will be opened on each of the addresses.
Examples
To make your socket accessible only to that machine, bind to IP 127.0.0.1 (localhost):
. {
bind 127.0.0.1
}
To allow processing DNS requests only local host on both IPv4 and IPv6 stacks, use the syntax:
. {
bind 127.0.0.1 ::1
}
If the configuration comes up with several bind plugins, all addresses are consolidated together: The following sample is equivalent to the preceding:
. {
bind 127.0.0.1
bind ::1
}