Re: [Dnsmasq-discuss] dns/resolv.conf shoud follow DNS server as learned via DHCP

2017-03-05 Thread Dan Williams
On Sat, 2017-03-04 at 10:41 +0100, Rene Stoutjesdijk wrote: > i did setup the dnsmasq to be the dns server/resolver for my clients. > this works fine when i say that the resolver (at my dnsmasq server) > is > pointing towards 8.8.8.8 > > However, my uplink router and ISP could change, so what i'm

Re: [Dnsmasq-discuss] [PATCH] Fix DNS resolution when reconnecting to VPN or other similar interfaces

2016-11-13 Thread Dan Williams
On Sat, 2016-11-12 at 20:14 -0500, Nikolay Martynov wrote: > If interface goes down and then interface with same name brought up > (e.g. VPN) then sending data for fds bound to this interfaces fails > with ENODEV. Fix this by rebinding opened fd to current interface > name. Does this commit fix yo

Re: [Dnsmasq-discuss] Interface name in /etc/resolv.conf with network-manager

2016-04-12 Thread Dan Williams
On Mon, 2016-04-11 at 09:24 +0200, Albert ARIBAUD wrote: > Hi Leandro, > > Le Sun, 10 Apr 2016 21:42:57 +0200 > Leandro Noferini a écrit: > > > > > Albert ARIBAUD writes: > > > > > > [...] > > > > > > > > So it would appear that dnsmasq already sends the right domain > > > search option, a

Re: [Dnsmasq-discuss] dnsmasq on Ubuntu 14.04 and Network Manager

2015-09-29 Thread Dan Williams
On Tue, 2015-09-29 at 09:04 -0500, Brian Watson wrote: > Hi, >I had this working on Ubuntu 10.04, but now I would like to get it > working on 14.04 with a better understanding of what's happening. On 10.04 > I installed dnsmasq without understanding that there was probably one > already install

Re: [Dnsmasq-discuss] DBus API

2015-05-22 Thread Dan Williams
On Fri, 2015-05-22 at 09:52 -0500, richardvo...@gmail.com wrote: > > > > I can see why rereading *all* configuration would require root > > privileges, but certainly a simple refresh of the DNS information > > doesn't since that would just update internal structures and not require > > opening any

Re: [Dnsmasq-discuss] DBus API

2015-05-21 Thread Dan Williams
On Thu, 2015-05-21 at 14:28 -0500, richardvo...@gmail.com wrote: > > > > For the short term, NM does have an /etc/NetworkManager/dnsmasq.d > > directory where you can toss dnsmasq config files, which NM will pass to > > dnsmasq when it spawns it. Unfortunately, because D-Bus gets used on > > Ubunt

Re: [Dnsmasq-discuss] DBus API

2015-05-21 Thread Dan Williams
On Thu, 2015-05-21 at 13:17 -0400, Tom Metro wrote: > I'm attempting to use DBus to set up DNS for a split-tunnel VPN using an > environment similar to the one described in this posting: > http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008541.html > > with Ubuntu 14.10 and Network

Re: [Dnsmasq-discuss] DHCP simultaneous with static addresses and autoconf

2015-03-27 Thread Dan Williams
On Fri, 2015-03-27 at 15:51 -0400, Laine Stump wrote: > (the following is on RHEL, Fedora, and CentOS clients; I'm not sure what > behavior is on other platforms.) > > First, a question about client behavior (i.e. not specific to dnsmasq): > > I noticed a long time ago that IPv4 clients configure

Re: [Dnsmasq-discuss] Problem in DHCPv6

2014-07-23 Thread Dan Williams
On Wed, 2014-07-23 at 13:45 +0200, Lorenzo Milesi wrote: > > If I understood correctly, you will have to send router advertisements > > from your default router (apparently you need to do this from the > > router, with IPv6) using e.g. radvd to advertise the prefix length. > > Setting the RA on th

Re: [Dnsmasq-discuss] dnssec and local caching dns in fedora and network manager

2014-04-14 Thread Dan Williams
On Mon, 2014-04-14 at 09:31 +0100, Simon Kelley wrote: > On 13/04/14 21:24, Dave Taht wrote: > > interesting long thread over at the fedora project this weekend: > > > > https://lists.fedoraproject.org/pipermail/devel/2014-April/197755.html > > > > I'm quite a long way through it already. The ma

Re: [Dnsmasq-discuss] dnsmasq, NetworkManager and VPNs

2014-03-06 Thread Dan Williams
On Thu, 2014-03-06 at 12:39 +1100, Tony Breeds wrote: > Hi All, > I'm a new user of dnsmasq and I can't see an easy way to do what > I want to do. > > My situation is (probably not that uncommon) I need to connect to a work > VPN and while I'm connected to said VPN I need to query work's D

Re: [Dnsmasq-discuss] following RFC6106 triggers bug in network-manager

2013-11-05 Thread Dan Williams
On Tue, 2013-11-05 at 09:21 +0100, Gui Iribarren wrote: > Hello, > so, we started suffering frequent, periodic disconnects on clients since > upgrading dnsmasq 2.62 -> 2.66 > > tracking down the issue, it came down to a network-manager bug while > maintaining the RDNSS list, where an unhandled e

Re: [Dnsmasq-discuss] Why is dnsmasq reading /var/run/dnsmasq/resolv.conf twice when it starts up?

2013-10-03 Thread Dan Williams
On Thu, 2013-10-03 at 17:05 +0100, Chris Green wrote: > On Thu, Oct 03, 2013 at 04:42:59PM +0100, Simon Kelley wrote: > > On 03/10/13 16:29, Chris Green wrote: > > >When I start dnsmasq I see the following in syslog:- > > > > > >Oct 3 16:09:03 revo dnsmasq[2819]: started, version 2.63rc6 cachesize

Re: [Dnsmasq-discuss] IPv6 link-local addresses and listen-address parameter

2013-08-05 Thread Dan Williams
On Sun, 2013-08-04 at 19:43 +0545, Phil Davis wrote: > In a valid IPv4 configuration, the IP address of every interface on a > device has to be different. So the --listen-address parameter specifies > particular IPv4 addresses, and those are unique on the box, each IPv4 > address appears on 1 an

Re: [Dnsmasq-discuss] Cannot assign IPv6 address for /96 subnet

2013-03-03 Thread Dan Williams
On Fri, 2013-03-01 at 16:58 -0500, Pavel Simerda wrote: > - Original Message - > > From: "Joakim Langlet" > > > > Pavel and Dan, > > Thank you for your answers. It makes it a lot easier for me to > > understand the problems I have with Ubuntu 12.04 and also Debian > > Wheezy RC-1 currentl

Re: [Dnsmasq-discuss] Cannot assign IPv6 address for /96 subnet

2013-02-27 Thread Dan Williams
On Sat, 2013-02-23 at 12:24 +0100, Joakim Langlet wrote: > tis 2013-02-19 klockan 18:02 -0600 skrev Dan Williams: > > On Tue, 2013-02-19 at 21:06 +, Simon Kelley wrote: > > > So, I did some testing. I configured an server interface with > > > prefix-length 96, an

Re: [Dnsmasq-discuss] Cannot assign IPv6 address for /96 subnet

2013-02-19 Thread Dan Williams
On Tue, 2013-02-19 at 21:06 +, Simon Kelley wrote: > So, I did some testing. I configured an server interface with > prefix-length 96, and configured dnsmasq with a dhcp-range and 96 prefix. > > Using dhclient, I got a lease successfully. > > The only problem is that dhclient configured the

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 16:53 -0500, Gene Czarcinski wrote: > On 02/11/2013 04:35 PM, Dan Williams wrote: > > On Mon, 2013-02-11 at 16:29 -0500, Gene Czarcinski wrote: > >> On 02/11/2013 04:12 PM, Dan Williams wrote: > >>> See my reply to your other mail about

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 16:42 -0500, Gene Czarcinski wrote: > On 02/11/2013 04:06 PM, Dan Williams wrote: > > > Fedora 17 and 18, until 0.9.7.997, left the DUID behavior up to > > dhcleint, which appears to generate a default DUID itself; but the > > NetworkManager code

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 16:29 -0500, Gene Czarcinski wrote: > On 02/11/2013 04:12 PM, Dan Williams wrote: > > See my reply to your other mail about this; I see what you're saying > > now, and I think we can push for having whatever generates machine-id > > (often systemd)

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 15:06 -0600, Dan Williams wrote: > On Mon, 2013-02-11 at 15:34 -0500, Gene Czarcinski wrote: > > On 02/10/2013 09:09 PM, Dan Williams wrote: > > > On Sat, 2013-02-09 at 11:01 -0500, Gene Czarcinski wrote: > > > > >> Unfortunately, what y

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 15:46 -0500, Gene Czarcinski wrote: > On 02/11/2013 12:13 PM, Dan Williams wrote: > > The option you're looking for*is* to set default-duid in the lease > > file. That's exactly how you tell NM to use the DUID you want. > > Otherwise, NM wil

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 15:34 -0500, Gene Czarcinski wrote: > On 02/10/2013 09:09 PM, Dan Williams wrote: > > On Sat, 2013-02-09 at 11:01 -0500, Gene Czarcinski wrote: > > >> Unfortunately, what you have done is not going to scratch my itch! > >> > >> First, I

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-11 Thread Dan Williams
On Mon, 2013-02-11 at 11:48 -0500, Gene Czarcinski wrote: > On 02/10/2013 08:57 PM, Dan Williams wrote: > > Best to test with is git master or the 0.9.7.995 release. > Too late ... I am running 0.9.7.997 I lied and I actually mean 0.9.7.997 :) > So far things are working we

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-10 Thread Dan Williams
On Sat, 2013-02-09 at 11:01 -0500, Gene Czarcinski wrote: > On 02/08/2013 05:11 PM, Dan Williams wrote: > > On Fri, 2013-02-08 at 11:34 -0500, Gene Czarcinski wrote: > >> On 02/08/2013 10:39 AM, Gene Czarcinski wrote: > >>> On 02/08/2013 10:17 AM, Simon Kelley wrote:

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-10 Thread Dan Williams
On Sat, 2013-02-09 at 12:02 -0500, Gene Czarcinski wrote: > On 02/09/2013 11:01 AM, Gene Czarcinski wrote: > > I need to look at the new code in NetworkManager to see what is being > > done. > There is a testing candidate update out for NetworkManager and > networt-manager-applet (0.9.7.997) whic

Re: [Dnsmasq-discuss] DHCPv6 and MAC

2013-02-08 Thread Dan Williams
On Fri, 2013-02-08 at 11:34 -0500, Gene Czarcinski wrote: > On 02/08/2013 10:39 AM, Gene Czarcinski wrote: > > On 02/08/2013 10:17 AM, Simon Kelley wrote: > >> On 07/02/13 21:27, Gene Czarcinski wrote: > >>> On 02/07/2013 04:22 PM, Gene Czarcinski wrote: > I was googling around and found this:

Re: [Dnsmasq-discuss] How to get back to default Network Manager dnsmasq (local DNS cache only)?

2013-01-09 Thread Dan Williams
On Wed, 2013-01-09 at 14:27 +, Chris Green wrote: > On Mon, Jan 07, 2013 at 09:17:21AM -0600, Dan Williams wrote: > > On Sat, 2013-01-05 at 14:16 +, Chris Green wrote: > > > A while ago I turned off the Network Manager loading of dnsmasq on my > > > desktop ma

Re: [Dnsmasq-discuss] How to get back to default Network Manager dnsmasq (local DNS cache only)?

2013-01-07 Thread Dan Williams
On Sat, 2013-01-05 at 14:16 +, Chris Green wrote: > A while ago I turned off the Network Manager loading of dnsmasq on my > desktop machine and installed a 'real' dnsmasq so that my desktop > machine could be the DNS server for the local LAN. > > To do this I commented out the dns=dnsmasq line

Re: [Dnsmasq-discuss] DNS server order is not being honored

2012-12-12 Thread Dan Williams
On Tue, 2012-12-11 at 13:17 -0500, richardvo...@gmail.com wrote: > Unless you're using the strict-order option and still seeing the order > change, this is not a bug. NM does pass --strict-order to dnsmasq when dnsmasq is used as the local caching nameserver plugin for NM, and has done that since

Re: [Dnsmasq-discuss] Unable to connect by hostname for local machines

2012-10-24 Thread Dan Williams
On Tue, 2012-10-23 at 06:49 -0600, dnsm...@ailsby.net wrote: > On 12-10-22 10:32 PM, /dev/rob0 wrote: > > On Mon, Oct 22, 2012 at 09:24:34PM -0600, dnsm...@ailsby.net wrote: > >> I am trying to setup dnsmasq so that I can use the OpenDNS servers > >> for my younger children, and then have all other

Re: [Dnsmasq-discuss] rereading configuration files

2012-10-24 Thread Dan Williams
On Tue, 2012-10-23 at 20:42 +0100, Simon Kelley wrote: > On 23/10/12 20:21, Gene Czarcinski wrote: > > It would be useful to libvirt if dnsmasq would reread the configuration > > file and/or the files in the configuration directory upon demand (via > > SIG) as is done for some other files. > > > >

Re: [Dnsmasq-discuss] How to add local configuration to Network Manager initiated dnsmasq in Ubuntu 12.04

2012-10-09 Thread Dan Williams
On Tue, 2012-10-09 at 14:04 +0100, Chris Green wrote: > On Tue, Oct 09, 2012 at 12:25:41PM +0100, Niall Litchfield wrote: > >Chris > >Did you come across Stephane Graber's website and article > >at [1]http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ (not sure > > if > > Yes, I'

Re: [Dnsmasq-discuss] System tries to get its address by DHCP before dnsmasq starts up - how to stop it?

2012-10-04 Thread Dan Williams
On Thu, 2012-10-04 at 12:20 +0100, Chris Green wrote: > On Thu, Oct 04, 2012 at 10:23:33AM +0100, Chris Green wrote: > > I have a little server system running dnsmasq version 2.59 under Ubuntu > > 12.04 (I have just upgraded it from Ubuntu 10.04). > > > > While booting it tries to get its network

Re: [Dnsmasq-discuss] Can't figure out how to assign static IPv6 addresses to clients

2012-10-02 Thread Dan Williams
On Mon, 2012-10-01 at 21:49 +0200, Sean Boran wrote: > > > Perhaps you clients are getting their addresses from router > advertisement, and not DHCP. So disable RA first in dnsmasq (and make > sure no router or other host is publishing one) You don't want to disable RA, you want to tell clients

Re: [Dnsmasq-discuss] [PATCH 2/2] dbus: add SetServersEx method

2012-09-17 Thread Dan Williams
On Sat, 2012-08-18 at 07:28 +0100, Simon Kelley wrote: > On 17/08/12 23:35, Dan Williams wrote: > > The SetServers method has a few deficiencies: > > > > First, given its argument structure, you cannot actually > > introspect it since it expects a variable number of arg

Re: [Dnsmasq-discuss] [PATCH] Add support for autotools

2012-09-11 Thread Dan Williams
On Tue, 2012-09-11 at 14:27 +0800, microcai wrote: > 2012/9/10 Simon Kelley : > > On 09/09/12 06:57, Cristian Rodríguez wrote: > >> El dom 09 sep 2012 02:03:11 CLST, Shantanu Gadgil escribió: > >>> If this is done, won't the autotools chain will be a prerequisite for > >>> dnsmasq to be built. > >>

Re: [Dnsmasq-discuss] [PATCH 2/2] dbus: add SetServersEx method

2012-08-19 Thread Dan Williams
On Sat, 2012-08-18 at 07:28 +0100, Simon Kelley wrote: > On 17/08/12 23:35, Dan Williams wrote: > > The SetServers method has a few deficiencies: > > > > First, given its argument structure, you cannot actually > > introspect it since it expects a variable number of arg

[Dnsmasq-discuss] [PATCH 2/2] dbus: add SetServersEx method

2012-08-17 Thread Dan Williams
d::1%eth0", "eng.mycorp.com", "lab.mycorp.com"]) print l.SetServersEx(array) Signed-off-by: Dan Williams --- dbus/DBus-interface | 42 ++ src/dbus.c | 419 +--- 2 files changed, 371 insertions(+), 90 deletions(-)

[Dnsmasq-discuss] [PATCH 1/2] Move common parsing functions to utils.c

2012-08-17 Thread Dan Williams
Will be needed by the enhanced D-Bus SetServers method. Signed-off-by: Dan Williams --- src/dnsmasq.h | 8 +- src/option.c | 92 --- src/util.c| 92 ++- 3 files changed, 98