[Dnsmasq-discuss] Loading Dnsmasq before the interface is up

Tsachi tsachi.kimel at gmail.com
Wed Aug 15 14:15:23 BST 2012


Just to correct, the dnsmasq was listening on 0.0.0.0:67 before the
interface was up, so it is not the netlink message that cause it to
listen and it was listening before.
But still after the interface is up I don’t see the binding of the DNS.

And my config file is:

domain-needed
bogus-priv
bind-interfaces
dhcp-range=10.0.0.10,10.0.0.10,10080m
resolv-file=/etc/resolv.conf
dhcp-authoritative

Thanks,

On Wed, Aug 15, 2012 at 6:04 AM, Tsachi <tsachi.kimel at gmail.com> wrote:
> Hey,
>
> I am using dnsmasq 2.60 on embedded Linux (kernel 2.6.35).
>
> I want to load the dnsmaq before I'm loading my network interface.
> So, as soon the interface is up, and an host sends an DHCP req ,
> dnsmasq will be getting it.
>
> The dnsmasq is getting notify via netlink for the new interface and
> this works great.
>
> But, after the link is up, I see is that although the dnsmasq listens
> on 67 (for DHCP), it doesn't open a new listening socket on port 53
> (for DNS).
>
> Restarting the daemon seems to solve it, and both 67 and 53 are being
> listening on.
>
> So I believe that notification from netlink doesn’t trigger the call
> for DNS listen.
>
> Am I right or am I missing something?
> If so, Is that on purpose?
>
> Thanks,



More information about the Dnsmasq-discuss mailing list