[Dnsmasq-discuss] Just listen on one interface

john doe johndoe65534 at mail.com
Tue Jul 10 19:53:35 BST 2018


On 7/10/2018 7:46 PM, Mauricio Tavares wrote:
> How much do I need in dnsmasq.conf to tell it to
> 
> 1. Only do your thing on eth2. Leave other interfaces alone.
> 1.1. Listen only on eth2 only. I take this is done with
> 
> bind-interfaces
> interface=eth2
> 

Should be enough; do you have multiple IPs on the same interface?

> 1.2. Do not try to edit the /etc/resolv.conf file. I do want to keep
> the DNS on that port completely separate from the one used on the rest
> of the interfaces. Right now it is taking over:
> 
> cat /etc/resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 127.0.0.1
> search domain.com
> 

Dnsmasq has nothing to do with resolvconf(8).
You will need to disable resolvconf(8) in order to avoid resolv.conf(5) 
to be overwritten.

> 1.3. Listen to dhcp queries. I have
> 
> # DHCP IP range
> dhcp-range=192.168.0.150,192.168.0.250,12h
> 
> And it is not answering any request.
> 

This option will enable dhcp server for that range, thus clients should 
get a dhcp lease if they are on the subnet given by eth2.

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

-- 
John Doe



More information about the Dnsmasq-discuss mailing list