[Dnsmasq-discuss] Making dnsmasq listen to only one IP address

Simon Kelley simon at thekelleys.org.uk
Fri Mar 16 20:09:18 GMT 2007


Leo R. Lundgren wrote:
> Hi,
> 
> I run FreeBSD on a server, and have some jails running on it.  Currently 
> dnsmasq listens on *:53 on this server, but I need it to  listen to one 
> specific IP address instead. The reason for this is so  that the jail 
> host won't hijack incoming traffic to any of the jail  IP's, port 53.
> 
> I've tried giving dnsmasq the flag --listen-address=1.2.3.4, but it  
> just won't change anything. The output of netstat is still *:53. I've  
> also looked at the various other arguments, but can't find anything  
> that seems like it would do the job.
> 
> Have I seriously missed something here, or is dnsmasq behaving weird?  
> It's FreeBSD 6.2, nothing special. Please let me know if you need  
> details :)
> 
> Thanks, // Leo
> 

The extra magic which you need is --bind-interfaces


HTH

Simon.




More information about the Dnsmasq-discuss mailing list