[Dnsmasq-discuss] [bugreport second attempt] interface=* and bind-dynamic no DHCP answer

Simon Kelley simon at thekelleys.org.uk
Fri May 31 13:00:43 BST 2013


On 31/05/13 12:02, Natrio wrote:
> Dnsmasq is not responding (tcpdump show it) to DHCP requests (from
> android phone via USB and WiFi), if config has options:
> interface=*
> bind-dynamic
> AND the system has no virtual interfaces except "lo".
>
> If "interface=" option contain more than "*", for example "usb*,wlan*",
> or the system has virtual interfaces (ls /sys/devices/virtual/), such as
> a TUN or VLAN, the server responds and works.
>
> ------------------- /etc/dnsmasq.conf :
> # Disable DNS
> port=0
>
> interface=*
> bind-dynamic
> no-hosts
> no-resolv
> dhcp-option=option:router,192.168.42.160
>
> dhcp-range=192.168.42.0,static,255.255.255.0,24h
> dhcp-host=c8:d1:5e:9a:45:3f,192.168.42.129
>
> dhcp-range=lan,192.168.42.10,192.168.42.99,255.255.255.0,12h
> ------------------------------------------ end of file
>

OK, I just attempted to reproduce this and it's working for me, but with 
a much earlier kernel.

Are you seeing DHCP requests via tcpdump? Does dnsmasq log anything, 
even if it doesn't send a reply packet?

Could you try attaching strace to the dnsmasq process with strace -p. 
and see what system calls it's making in response to the DHCP requests?


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list