mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	This still needs cleanup, but this is a first pass the cleans some cruft and documents our style (in middleware.md) and makes all the docs match that style.
		
			
				
	
	
		
			22 lines
		
	
	
		
			446 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			446 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# bind
 | 
						|
 | 
						|
*bind* overrides the host to which the server should bind. 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
 | 
						|
 | 
						|
~~~ txt
 | 
						|
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):
 | 
						|
 | 
						|
~~~ txt
 | 
						|
bind 127.0.0.1
 | 
						|
~~~
 |