mirror of
https://github.com/coredns/coredns.io.git
synced 2024-04-21 12:32:00 +00:00
590 B
590 B
+++ title = "bind" description = "bind overrides the host to which the server should bind. " weight = 2 tags = [ "middleware" , "bind" ] categories = [ "middleware" ] date = "2017-07-24T15:25:40+00:00" +++
Normally, the listener binds to the wildcard host. However, you may force the listener to bind to another IP instead. This directive accepts only an address, not a port.
Syntax
bind ADDRESS
ADDRESS is the IP address to bind to.
Examples
To make your socket accessible only to that machine, bind to IP 127.0.0.1 (localhost):
bind 127.0.0.1