Re: [PATCH] dnsmasq: does handle more than one nameserver per domain



----- Original Message -----
From: "Jack Bates" <u32lyv nottheoilrig com>
To: networkmanager-list gnome org
Sent: Friday, July 5, 2013 12:20:06 AM
Subject: [PATCH] dnsmasq: does handle more than one nameserver per domain

http://nottheoilrig.com/networkmanager/201307040/perdomain.patch

Hi,

+1 from me with a couple of minor issues:

* Name *i* is good enough for an integer counter.
* We usually use 'nnameservers' and the like, not 'n_nameserver'.
* I recommend using in_addr_t (or guint32) as we do in most of the code for IPv4 addresses instead of struct 
in_addr.

Pavel

Here is the patch ^

Hello,

Recently I spotted the FIXME in nm-dns-dnsmasq.c that says dnsmasq can
only handle one nameserver per domain, and I spotted these comments from
Simon Kelley (dnsmasq author) that say it is not the case:

 
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1003842/comments/58
 
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1003842/comments/55

The problem with more than one nameserver per domain is that dnsmasq
always handles them as if --strict-order was enabled. If --strict-order
is not enabled, it should query them non-deterministically in the normal
dnsmasq manner. He says he plans to correct this, but either way,
dnsmasq does handle more than one nameserver per domain.

In the second comment he points out that NetworkManager loses subsequent
nameservers and only passes one per-domain nameserver to dnsmasq. This
patch fixes that.

It passes all per-domain nameservers to dnsmasq and removes the FIXME. I
would like to contribute the patch to NetworkManager, and am happy to
make any changes you request.

Thanks!
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]