Re: [Dnsmasq-discuss] DHCP, how to ignore the client MAC address?

2019-01-15 Thread Michael Schleicher (smicha)

Hi John,

thanks for your reply.

On 12.01.19 07:48, john doe wrote:

If the maintaner of dnsmasq has not chimed in that leav us with to options:
- To much on his plate, something could be done to answer this question.
- The issue lies elsewhere (predicting way for MAC addressing).

Ok, than we wait, maybe Simon jump's in...

Many Thanks
Michael

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Fwd: [PATCH] fix entries in /etc/hosts disabling static leases

2019-01-15 Thread Steven Siloti
On Tue, Jan 15, 2019 at 12:44 PM Kaas Baichtal  wrote:

> Hi,
>
> I tried to install this patch manually to my 2.80 and got a segfault that
> prevented dnsmasq running. I also tried git cloning the master and
> installing that instead but got the same result. Any suggestions? I could
> really use this fix. Thank you.
>
> --Kaas
>
> Sorry about that, the attached patch should fix it.


0001-add-missing-braces.patch
Description: Binary data
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] fix entries in /etc/hosts disabling static leases, segfaults

2019-01-15 Thread Geert Stappers
On Tue, Jan 15, 2019 at 10:39:36PM +0100, Geert Stappers wrote:
> On Tue, Jan 15, 2019 at 02:31:56PM -0600, Kaas Baichtal wrote:
> > >
> > > Patch applied. (
> > > http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=18eac67c0a15b673c8d27002c248651b308093e4
> > > )
> > >
> > 
> > I tried to install this patch manually to my 2.80 and got a segfault that
> > prevented dnsmasq running. I also tried git cloning the master and
> > installing that instead but got the same result.
> 
> FWIW  I can reproduce the segfault.
> 
> Syslog:
> Jan 15 22:23:00 nero dnsmasq[27580]: started, version 2.80-30-g18eac67 DNS 
> disabled
> Jan 15 22:23:00 nero dnsmasq[27580]: compile time options: IPv6 GNU-getopt 
> no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth 
> no-DNSSEC loop-detect inotify dumpfile
> Jan 15 22:23:00 nero dnsmasq-dhcp[27580]: DHCP, proxy on subnet 172.24.0.63
> Jan 15 22:23:00 nero dnsmasq-tftp[27580]: TFTP root is /srv/tftpd 
> Jan 15 22:23:00 nero kernel: [1481741.304294] dnsmasq[27580]: segfault at 0 
> ip 0043328f sp 7fff6f19a348 error 4 in dnsmasq[40+4d000]
> 
> Running in gdb yielded nothing:
> # gdb /usr/sbin/dnsmasq
> GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
>...
> Reading symbols from /usr/sbin/dnsmasq...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /usr/sbin/dnsmasq 
> [Inferior 1 (process 30650) exited normally]
> (gdb)
> 

Revert that last commit gets me a working  dnsmasq 
Single line from syslog, from the short git commit hash:
Jan 15 22:49:04 nero dnsmasq[31064]: started, version 2.80-29-gf8c77ed DNS 
disabled


Groeten
Geert Stappers
-- 
Leven en laten leven

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] fix entries in /etc/hosts disabling static leases, segfaults

2019-01-15 Thread Geert Stappers
On Tue, Jan 15, 2019 at 02:31:56PM -0600, Kaas Baichtal wrote:
> Simon Kelley Sun, 13 Jan 2019 15:32:43 -0800
> > On 12/01/2019 21:55, Steven Siloti wrote:
> >> It is possible for a config entry to have one address family specified by a
> >> dhcp-host directive and the other added from /etc/hosts. This is especially
> >> common on OpenWrt because it uses odhcpd for DHCPv6 and IPv6 leases are
> >> imported into dnsmasq via a hosts file.
> >> 
> >> To handle this case there need to be separate *_HOSTS flags for IPv4 and 
> >> IPv6.
> >> Otherwise when the hosts file is reloaded it will clear the CONFIG_ADDR(6) 
> >> flag which was set by the dhcp-host directive.
> >
> > Patch applied.
> >
> 
> I tried to install this patch manually to my 2.80 and got a segfault that
> prevented dnsmasq running. I also tried git cloning the master and
> installing that instead but got the same result.

FWIW  I can reproduce the segfault.

Syslog:
Jan 15 22:23:00 nero dnsmasq[27580]: started, version 2.80-30-g18eac67 DNS 
disabled
Jan 15 22:23:00 nero dnsmasq[27580]: compile time options: IPv6 GNU-getopt 
no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth 
no-DNSSEC loop-detect inotify dumpfile
Jan 15 22:23:00 nero dnsmasq-dhcp[27580]: DHCP, proxy on subnet 172.24.0.63
Jan 15 22:23:00 nero dnsmasq-tftp[27580]: TFTP root is /srv/tftpd 
Jan 15 22:23:00 nero kernel: [1481741.304294] dnsmasq[27580]: segfault at 0 ip 
0043328f sp 7fff6f19a348 error 4 in dnsmasq[40+4d000]

Running in gdb yielded nothing:
# gdb /usr/sbin/dnsmasq
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
   ...
Reading symbols from /usr/sbin/dnsmasq...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/sbin/dnsmasq 
[Inferior 1 (process 30650) exited normally]
(gdb)


Groeten
Geert Stappers
-- 
Leven en laten leven

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] [PATCH] fix entries in /etc/hosts disabling static leases

2019-01-15 Thread Kaas Baichtal
Hi,

I tried to install this patch manually to my 2.80 and got a segfault that
prevented dnsmasq running. I also tried git cloning the master and
installing that instead but got the same result. Any suggestions? I could
really use this fix. Thank you.

--Kaas



---
>
>Re: [Dnsmasq-discuss] [PATCH] fix entries in /etc/hosts disabling static
leases
>
>Simon Kelley Sun, 13 Jan 2019 15:32:43 -0800
>
>Patch applied.
>
>
>Cheers,
>
>Simon.
>
>
>
>On 12/01/2019 21:55, Steven Siloti wrote:
>> It is possible for a config entry to have one address family specified by
a
>> dhcp-host directive and the other added from /etc/hosts. This is
especially
>> common on OpenWrt because it uses odhcpd for DHCPv6 and IPv6 leases are
>> imported into dnsmasq via a hosts file.
>> 
>> To handle this case there need to be separate *_HOSTS flags for IPv4 and
IPv6.
>> Otherwise when the hosts file is reloaded it will clear the
CONFIG_ADDR(6) 
>> flag
>> which was set by the dhcp-host directive.
>> ---
>



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] IXFR requests and how they are handled

2019-01-15 Thread Wojtek Swiatek
Hello

I was trying to use dnsmasq as a master with unbound as secondaries. After
some debugging (https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4219),
I realized that IXFR is not handled by dnsmasq (AXFR is - and works fine).
It seems that the request just hangs and timeouts.

Would it be possible to appropriately respond to IXFR queries so that the
requesting server knows to fallback to AXFR?
I am trying at the same time to see whether the "timeout" case could not be
gracefully handled as well on unbound side (they only handle rejection)
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss