Re: [Dnsmasq-discuss] dnsmasq page fault
Hi, I think tcp_init() must be execute outside of if (daemon->port != 0) {}. I've two instances running. The crashing instance acts as dhcp server only. Regards, Hartmut Am 10.11.2023 um 20:15 schrieb Geert Stappers: On Fri, Nov 10, 2023 at 07:41:59PM +0100, e9hack wrote: Hi, it looks like that commit 416390f9962e455769aa8ab6df0e105cae07ae55 (Add --max-tcp-connections option to make this dynamically configurable.) is incomplete. https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=416390f9962e455769aa8ab6df0e105cae07ae55;hp=24804b7431f6ace109e91876aef859a751bf3147 It occurs a page fault in dnsmasc.c line 1050 (initialisation of daemon->tcp_pipes with -1). Oops. Regards, Hartmut Thanks for reporting. Groeten Geert Stappers ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] dnsmasq page fault
Hi, it looks like that commit 416390f9962e455769aa8ab6df0e105cae07ae55 (Add --max-tcp-connections option to make this dynamically configurable.) is incomplete. It occurs a page fault in dnsmasc.c line 1050 (initialisation of daemon->tcp_pipes with -1). Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Internal error in cache
Am Fr., 24. Dez. 2021 um 20:12 Uhr schrieb Simon Kelley < si...@thekelleys.org.uk>: > > Reassurance that the bug is fixed for you too would be appreciated. > It looks like it's fixed now. In the past, it took ~12h to trigger the issue. It can be related to my configuration, 300 cache entries and an adblock list with 50k entries like 'address=/googleanalytics.com/'. When I run Steve Gibson's DNS benchmark utility, the issue is triggered immediately. The utility sends ~350 DNS queries to the local DNS server/resolver. ~100 must fail with NXDOMAIN. Regards and Merry Christmas, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Internal error in cache
Am 19.12.2021 um 14:49 schrieb Dominik Derigs: Hey Hartmut, I'm using dnsmasq on OpenWrt. Since update dnsmasq from commit 51d56df7a3a125e117b3278cab16281c85500287 Add RFC 4833 DHCP options "posix-timezone" and "tzdb-timezone". to commit 4ac517e4ac19eca65910c145868914587ea46b3b Fix coverity issues in dnssec.c I get the following error message: Sun Dec 19 12:22:25 2021 daemon.err dnsmasq[3321]: Internal error in cache. This is a somewhat concerning warning and points to a bug in the cache. I'm not very familiar with OpenWrt, can you pick any individual commit or are you limited to specific ones? I override the used version from openwrt by the latest version from dnsmasq repo. Sometimes I've to delete or adjust a few patches from openwrt. In the former case, would you be willing to test a few more commits in between them? This would allow us to isolate the cause to the commit introducing the error. I will try to test the commits in between. This occurs ~12 hours after booting the router. This suggests maybe a correlation with a domain that is early requested and has a TTL of 12 hours (entirely hypothetical at this point). Currently I'm using this version: commit 1176cd58c90fc37bf98a6f774b26fc1adc8fd8e9 Fix regression in --rebind-domain-ok in 2.86 Does it show the error? I guess the answer is yes as this is the most recent commit. Yes it does show the error too. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Internal error in cache
Hi, I'm using dnsmasq on OpenWrt. Since update dnsmasq from commit 51d56df7a3a125e117b3278cab16281c85500287 Add RFC 4833 DHCP options "posix-timezone" and "tzdb-timezone". to commit 4ac517e4ac19eca65910c145868914587ea46b3b Fix coverity issues in dnssec.c I get the following error message: Sun Dec 19 12:22:25 2021 daemon.err dnsmasq[3321]: Internal error in cache. This occurs ~12 hours after booting the router. Currently I'm using this version: commit 1176cd58c90fc37bf98a6f774b26fc1adc8fd8e9 Fix regression in --rebind-domain-ok in 2.86 Any idea why this occurs? Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Partial denial of service with dnsmasq on resource constrained systems
Am 02.04.2021 um 10:56 schrieb Kevin 'ldir' Darbyshire-Bryant: The adblock package solution on openwrt (I’m being specific ‘cos there are a number of ‘adblock’ solutions with ‘adblock’ name :-) Deny uses 'address=/foo.bar/‘ to block ‘foo.bar’ and ‘*.foo.bar' Such a definition is put in a variable of type struct server. Struct server contains the member interface with a size of 65 bytes. Since the number of interfaces is limited, it would be nice, if an additional list for interface names can be used. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] ubus problem
Am 10.04.2019 um 23:56 schrieb Simon Kelley: > If Harmut's config is unique, and works without openWRT talking to both > dnsmasq instances, then the solution may be just to turn off ubus on one > of the dnsmasq instances. I don't know what openwrt does with the dnsmasq data on ubus. I did turn off ubus on one dnsmasq instance. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] ubus problem
Hi, I'm using the latest dnsmasq version with openwrt. There are two instances running. One provides dhcpv4, dhcpv6 and dns to several networks, the other one dhcpv4 to one network only. It looks like, that the second instance has a problem with ubus: Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: Connected to system UBus Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: started, version 2.80-52-ga2b8220 cachesize 300 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack no-ipset auth DNSSEC no-ID loop-detect inotify dumpfile Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: UBus support enabled: connected to system bus Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: DNSSEC validation enabled Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: DNSSEC signature timestamps not checked until receipt of SIGINT Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: configured with trust anchor for keytag 20326 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: configured with trust anchor for keytag 19036 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain test Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain onion Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain localhost Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain local Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain invalid Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain bind Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using nameserver 2a02:::::::#53 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using nameserver 46.zzz.zzz.zzz#53 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using nameserver 2a03:::::::#53 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using nameserver 146.zzz.zzz.zzz#53 Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: using only locally-known addresses for domain lan Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: read /etc/hosts - 4 addresses Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1808]: read /tmp/hosts/dhcp.main - 29 addresses Sun Apr 7 18:37:34 2019 daemon.err dnsmasq[1809]: Cannot add object to UBus: Invalid argument Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1809]: started, version 2.80-52-ga2b8220 DNS disabled Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1809]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack no-ipset auth DNSSEC no-ID loop-detect inotify dumpfile Sun Apr 7 18:37:34 2019 daemon.info dnsmasq[1809]: UBus support enabled: bus connection pending >From the first I see: daemon.info dnsmasq[1808]: Connected to system UBus daemon.info dnsmasq[1808]: UBus support enabled: connected to system bus >From the second I see: daemon.err dnsmasq[1809]: Cannot add object to UBus: Invalid argument daemon.info dnsmasq[1809]: UBus support enabled: bus connection pending Sometimes, the starting sequence is inverted. The error occurs all the time on the seconded started instance only. This occurs since this commit: commit a2b8220f4e82e454bbc0013ee83ea3220111d92e Improved UBus supported Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] unwanted debug messages
Hi, since some time, the log is flooded with messages like this: Fri Dec 29 20:53:50 2017 daemon.warn dnsmasq[20961]: reducing DNS packet size for nameserver 217.237.151.142 to 1280 (17, 1280) I did change the name server and start dnsmasq with the option '-edns-packet-max=1280'. It doesn't relay help. I did check the related source code. I don't understand the source code, but it looks strange for me. I did add an additional check and now I don't get this messages any more. --- forward.c.save 2017-12-14 23:40:48.0 +0100 +++ forward.c 2017-12-29 21:34:51.131218864 +0100 @@ -853,8 +853,8 @@ /* We tried resending to this server with a smaller maximum size and got an answer. Make that permanent. To avoid reduxing the packet size for an single dropped packet, only do this when we get a truncated answer, or one larger than the safe size. */ - if (server && (forward->flags & FREC_TEST_PKTSZ) && - ((header->hb3 & HB3_TC) || n >= SAFE_PKTSZ)) + if ((server && (forward->flags & FREC_TEST_PKTSZ) && + ((header->hb3 & HB3_TC) || n >= SAFE_PKTSZ)) && server->edns_pktsz > SAFE_PKTSZ) { server->edns_pktsz = SAFE_PKTSZ; prettyprint_addr(>addr, daemon->addrbuff); Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Fwd: dhcpv6 and clients in Oracle VirtualBox
Hi, VirtualBox exchanges the source/destination mac of all client packets to the mac of the host and vice versa. If a config entry is searched by dnsmasq, first the duid will be compared. If no matching entry is found, the mac address is used instead. Since no duid is configured for my clients in VirtualBox, dnsmasq searches for a matching mac. The packet contains the host's mac, dnsmasq uses the config entry for the host. The client gets the name of the host. Dnsmasq can not use the source mac of a packet to configure something. Regards Hartmut Weitergeleitete Nachricht Betreff: dhcpv6 and clients in Oracle VirtualBox Datum: Thu, 12 Jan 2017 17:26:59 +0100 Von: e9hack <e9h...@gmail.com> An: dnsmasq-discuss@lists.thekelleys.org.uk Hi, I've some trouble with clients in VirtualBox (Linux and Windows 10). The host runs Windows 7. I create dhcp-host entries for all machines: dhcp-host=aa:aa:aa:aa:aa:aa,id:00:01:00:01:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa,192.168.255.100,[::0:0:1234:100],host-windows dhcp-host=bb:bb:bb:bb:bb:bb,192.168.255.110,[::0:0:1234:110],vbox-windows dhcp-host=cc:cc:cc:cc:cc:cc,192.168.255.120,vbox-linux If I start a client in VirtualBox, it does hi-jack the dhcp6 name of the host. Both windows machines are using the same iaid. With 'ipconfig /renew6', I can retrieve the name for ipv6. All machines provide a name by its own. It is the same name, which is configured for dnsmasq. If I add a duid and a ipv6 address, it doesn't occur. The ipv4 name isn't affected. The second dhcp-host entry maybe wrong, because it contains an ipv6 address but no duid. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] dhcpv6 and clients in Oracle VirtualBox
Hi, I've some trouble with clients in VirtualBox (Linux and Windows 10). The host runs Windows 7. I create dhcp-host entries for all machines: dhcp-host=aa:aa:aa:aa:aa:aa,id:00:01:00:01:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa,192.168.255.100,[::0:0:1234:100],host-windows dhcp-host=bb:bb:bb:bb:bb:bb,192.168.255.110,[::0:0:1234:110],vbox-windows dhcp-host=cc:cc:cc:cc:cc:cc,192.168.255.120,vbox-linux If I start a client in VirtualBox, it does hi-jack the dhcp6 name of the host. Both windows machines are using the same iaid. With 'ipconfig /renew6', I can retrieve the name for ipv6. All machines provide a name by its own. It is the same name, which is configured for dnsmasq. If I add a duid and a ipv6 address, it doesn't occur. The ipv4 name isn't affected. The second dhcp-host entry maybe wrong, because it contains an ipv6 address but no duid. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq does crash
Am 31.08.2016 um 11:51 schrieb Kevin Darbyshire-Bryant: > > On 30/08/16 23:08, Simon Kelley wrote: >> Sorry about this. Putative fix pushed to git. > > Looks good. It doesn't go bang anymore on my system :-) The same for me. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] dnsmasq does crash
Hi, I've trouble with this commit, independently that it looks simple: Suppress useless warning about DHCP packets of interfaces without addresses. Starting with this commit, dnsmasq does crash shortly after start: Mon Aug 29 21:18:40 2016 kern.info kernel: [17587.489903] Mon Aug 29 21:18:40 2016 kern.info kernel: [17587.489903] do_page_fault(): sending SIGSEGV to dnsmasq for invalid write access to 0038 Mon Aug 29 21:18:40 2016 kern.info kernel: [17587.498607] epc = 00411eff in dnsmasq[40+2d000] Mon Aug 29 21:18:40 2016 kern.info kernel: [17587.503589] ra = 00411ec7 in dnsmasq[40+2d000] Mon Aug 29 21:18:40 2016 kern.info kernel: [17587.508587] Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] issue with except-interface
Hi, it seems that '--except-interface' doesn't work properly. I need one interface which is never used by dnsmasq. I would like to run hostapd with driver wired on it. If I use '--except-interface=xxx', it doesn't work because hostapd complains about 'bind: Address already in use'. If I use '--bind-interfaces', I've to specify every interface with '--interface=yyy' which shall be used by dnsmasq. If such an interface isn't started yet, dnsmasq doesn't start with 'dnsmasq: unknown interface yyy'. How can I solve this issue? Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] NXDOMAIN instead of NODATA-IPv6
Hi, I'm using dnsmasq for DHCP and DHCPv6. Name resolution doesn't work on a Windows8 PC for a IPv4 only host on LAN, but it works for IPv4 only hosts on WAN. If I compare the log entries, the answer of an query for a host on LAN is NXDOMAIN and for a host on WAN NODATA-IPv6. daemon.info dnsmasq[24299]: started, version 2.72rc1 cachesize 150 daemon.info dnsmasq[24299]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect daemon.info dnsmasq[24299]: DNSSEC validation enabled daemon.info dnsmasq[24299]: query[A] vbox-linux.lan from 192.168.102.2 daemon.info dnsmasq[24299]: /tmp/hosts/dhcp vbox-linux.lan is 192.168.102.50 daemon.info dnsmasq[24299]: query[] vbox-linux.lan from 192.168.102.2 daemon.info dnsmasq[24299]: config vbox-linux.lan is NXDOMAIN daemon.info dnsmasq[24299]: query[A] www.thoralt.de from 192.168.102.2 daemon.info dnsmasq[24299]: cached www.thoralt.de is 79.140.41.184 daemon.info dnsmasq[24299]: query[] www.thoralt.de from 192.168.102.2 daemon.info dnsmasq[24299]: cached www.thoralt.de is NODATA-IPv6 Windows8 seems to cache negative replies. The first access to the local IPv4 only host works, all following access fail. The access works again for one time, if the DNS cache is flush manually. Regards Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] DNSSEC enabled dnsmasq dies very quickly
Hi, for testing purpose, I compile dnsmasq with option -DHAVE_DNSSEC. After a few name queries, dnsmasq dies. In the example, I start firefox on Windows 7. After a few queries, dnsmasq isn't longer running: Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: query[A] secure.informaction.com from 192.168.100.2 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded secure.informaction.com to 192.168.26.1 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded secure.informaction.com to 8.8.8.8 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded secure.informaction.com to 2001:4860:4860:: Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded secure.informaction.com to fe80::1 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply secure.informaction.com is 69.195.141.179 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: query[] secure.informaction.com from 192.168.100.2 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded secure.informaction.com to 192.168.26.1 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply secure.informaction.com is NODATA-IPv6 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: query[A] ocsp.godaddy.com from 192.168.100.2 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded ocsp.godaddy.com to 192.168.26.1 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply ocsp.godaddy.com is CNAME Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply ocsp.godaddy.com.akadns.net is 188.121.36.239 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: query[] ocsp.godaddy.com from 192.168.100.2 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: cached ocsp.godaddy.com is CNAME Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: forwarded ocsp.godaddy.com to 192.168.26.1 Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply ocsp.godaddy.com is CNAME Sun Jan 26 12:04:57 2014 daemon.info dnsmasq[1880]: reply ocsp.godaddy.com.akadns.net is NODATA-IPv6 My test setup is a carambola box with the current trunk of OpenWRT. If I compile it without -DHAVE_DNSSEC, it runs perfectly. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] dnsmasq does crash with segmentation fault
Hi, my windows 7 PC is connected with a WLAN card to my router. If my PC is connected to one router, which doesn't run dnsmasq, it got an ipv4 address only. It's 192.168.26.100. If I disconnect the PC from this router an let it connect to the router with dnsmasq, it got the address 192.168.25.2. It got the ipv4 gateway and dns address and dnsmasq dies with a segmentation fault: root@WLAN-DSL5:~ #dnsmasq --no-daemon -C /etc/dnsmasq.conf dnsmasq: started, version v2.66test11 cachesize 200 dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-scripts no-TFTP no-conntrack no-auth dnsmasq-dhcp: DHCP, IP range 192.168.25.100 -- 192.168.25.150, lease time 2d dnsmasq-dhcp: DHCPv6, IP range fec0:::0:0::100 -- fec0:::0:0::, lease time 2d dnsmasq: using local addresses only for domain lan dnsmasq: reading /etc/resolv.conf dnsmasq: using nameserver ... dnsmasq: using nameserver ... dnsmasq: using nameserver ... dnsmasq: using nameserver ... dnsmasq: using local addresses only for domain lan dnsmasq: read /var/hosts - 24 addresses dnsmasq-dhcp: duplicate IP address ... in dhcp-config directive dnsmasq-dhcp: duplicate IP address ... in dhcp-config directive dnsmasq-dhcp: duplicate IP address ... in dhcp-config directive dnsmasq-dhcp: duplicate IP address ... in dhcp-config directive dnsmasq-dhcp: duplicate IP address ... in dhcp-config directive dnsmasq-dhcp: 14128106 available DHCP range: fec0:::0:0::100 -- fec0:::0:0:: dnsmasq-dhcp: 14128106 vendor class: 311 dnsmasq-dhcp: 14128106 DHCPINFORMATION-REQUEST(br0) 00:01:00:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx windows7-pc dnsmasq-dhcp: 14128106 requested options: 24:domain-search, 23:dns-server, 17:vendor-opts, dnsmasq-dhcp: 14128106 requested options: 32:information-refresh-time Segmentation fault root@WLAN-DSL5:~ # Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] A ipv6 address is given twice
Hi, I configure a few fixed ipv6 address, like dhcp-host=id:00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d,Netbook,[fec0:0:0::0:0::10]. If the machine is connect with two interfaces to the network, both interfaces get the same ipv6 address. Windows 8 runs on the machine. It occurs during setup the configuration for OpenVPN. The real NIC and the tunnel adapter did got the same ipv6 address. Usually this will not occur, because I activate OpenVPN only, if I haven't a local network (WLAN) connection. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Can't figure out how to assign static IPv6 addresses to clients
Am 02.10.2012 21:52, schrieb Simon Kelley: On 02/10/12 14:56, Dan Williams wrote: So you really want to reconfigure either dnsmasq or radvd to set the M (Managed) flag, which will tell the clients to get their address from DHCPv6, not generate one from the RA prefix option. Dan is right, and the way to do this in dnsmasq is to define a dhcp-range, and set the global enable-ra flag. That will send RA (for the default route) with the M flag set (no SLAAC address). If you want SLAAC addresses _as_well_ as DHCPv6 assigned ones, add the slaac keyword to the dhcp-range. That clears the M flag. That's wrong. The M flag is for DHCPv6 only. It says nothing about SLAAC. SLAAC is available, if a prefix is advertise. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Can't figure out how to assign static IPv6 addresses to clients
Am 02.10.2012 23:09, schrieb Simon Kelley: On 02/10/12 21:53, e9hack wrote: Am 02.10.2012 21:52, schrieb Simon Kelley: On 02/10/12 14:56, Dan Williams wrote: So you really want to reconfigure either dnsmasq or radvd to set the M (Managed) flag, which will tell the clients to get their address from DHCPv6, not generate one from the RA prefix option. Dan is right, and the way to do this in dnsmasq is to define a dhcp-range, and set the global enable-ra flag. That will send RA (for the default route) with the M flag set (no SLAAC address). If you want SLAAC addresses _as_well_ as DHCPv6 assigned ones, add the slaac keyword to the dhcp-range. That clears the M flag. That's wrong. The M flag is for DHCPv6 only. It says nothing about SLAAC. SLAAC is available, if a prefix is advertise. I'm going from memory of experiments months ago, but I'm sure that the Linux kernel IPv6 autoconfiguration code, at least, does not assign SLAAC addresses if it gets RAs with the M bit set. I'm using radvd and dnsmasq. Dnsmasq is used for DHCPv6 but not for RA. If I disable the M flag at the radvd side, linux and windows 7 clients doesn't ask for a DHCPv6 lease, but they are using a SLAAC address. If I enable the M flag, both clients are using the SLAAC address and asking for a DHCPv6 lease. I'm using DHCPv6 (and a ULA prefix with RA) to configure site-local address. RA is used for global addresses to access the internet over a 6to4 auto tunnel with a prefix of 2002::::/64. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Weird duplicate IP address warning
Hi, depend on the configuration, warnings like duplicate IP address 192.168.1.4 (my-pc) in dhcp-config directive or duplicate IP address fec0:::0:0:1:4 (my-pc) in dhcp-config directive are in the log file. They occur, if there exist multiple entries in the hosts and config file for the same host for IPv4 and IPv6. The logic to hit such a warning is a little bit weird. For one host, it exist 7 combinations for the entries in hosts and config: hosts config warning ipv4ipv4- ipv4+ipv6 ipv4- ipv6ipv6- ipv4+ipv6 ipv6- ipv4ipv4+ipv6 ipv4 ipv6ipv4+ipv6 ipv6 ipv4+ipv6 ipv4+ipv6 ipv4+ipv6 It's same IPv4 and IPv6 address for this host. Why needs the ipv4 warning an ipv6 config entry and the ipv6 warning an ipv4 config entry? Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] strange warn message
Am 28.08.2012 15:21, schrieb Simon Kelley: On 18/08/12 07:26, e9hack wrote: Hi, I've a configuration where the host file contains two ipv6 entries for a host (self created ipv6 from ULA prefix and a DHCP ipv6): 192.168.25:2 vbox fdaa::::::: vbox fec0:0:0::::2 vbox ... The configuration file contains the DHCPv6 entry also: local=/lan/ domain=lan dhcp-range=192.168.25.100,192.168.25.150,48h dhcp-host=aa:aa:aa:bb:bb:bb,vbox,192.168.25.2 dhcp-range=fec0:0:0::::100,fec0:0:0::::,48h dhcp-host=id:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc,vbox,[fec0:0:0::::2] ... All the time, where a PC ask for a lease, I get the following entry in the log: Aug 18 08:05:27 WLAN daemon.info dnsmasq-dhcp[27370]: DHCPDISCOVER(br0) dd:dd:dd:dd:dd:dd Aug 18 08:05:27 WLAN daemon.info dnsmasq-dhcp[27370]: DHCPOFFER(br0) 192.168.25.6 dd:dd:dd:dd:dd:dd Aug 18 08:05:27 WLAN daemon.info dnsmasq-dhcp[27370]: DHCPREQUEST(br0) 192.168.25.6 dd:dd:dd:dd:dd:dd Aug 18 08:05:27 WLAN daemon.info dnsmasq-dhcp[27370]: DHCPACK(br0) 192.168.25.6 dd:dd:dd:dd:dd:dd vdr Aug 18 08:05:27 WLAN daemon.warn dnsmasq-dhcp[27370]: not giving name vbox.lan to the DHCP lease of fec0:::0:0::2 because the name exists in /var/hosts with address fdaa::::::: Aug 18 08:05:27 WLAN daemon.warn dnsmasq-dhcp[27370]: not giving name vbox to the DHCP lease of fec0:::0:0::2 because the name exists in /var/hosts with address fdaa::::::: dnsmasq complains about all hosts with more than one ipv6 address in the host file. The error message is shown for all DHCP queries from different PC's. dnsmasq gives the PC vbox the correct ipv6 address over DHCP. C:\Users\zznslookup vbox Server: WLAN.lan Address: 192.168.25.1 Name:vbox.lan Addresses: fdaa::::::: fec0:::0:0::2 192.168.25.2 Regards, Hartmut Ok, the obvious question: what's in the file /var/hosts? Simon. The vbox related stuff is described above. The whole file is: Web-Shell cat /var/hosts 127.0.0.1 localhost 192.168.25.1 WLAN 192.168.25.2 vbox 192.168.25.6 vdr 192.168.25.10 netbook 192.168.25.12 netbook-openvpn 192.168.25.18 defy # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts fdaa::::::: WLAN fdaa::::::: vbox fdaa::::::: vdr fec0:0:0:::1 WLAN fec0:0:0:::2 WLAN fec0:0:0::::2 vbox WLAN is the router on which dnsmasq is running. I see such a message for vbox, but I don't see a message for WLAN. The address for WLAN are set dircetly by 'ip addr add ...'. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] DHCPv6 isn't working with Linux
Hi, I'm not able to get DHCPv6 running on Linux, but Windows 7 isn't a problem. I'm using Opensuse 11.2 on a real PC and Opensuse 11.4 in a Virtual Box on the Windows 7 PC. Dnsmasq is running on a WLan router. The DHCPv6 client is ether the binary from the distribution or self compiled from http://fedorahosted.org/dhcpv6. I did use tcpdump to capture a few frames, but I don't know what is wrong on the Linux machines. One is configured for 'information only'. The other shall request a IPv6 lease. For this PC, I get many lines in the lease file with different lease time entries like: 1346267260 100 fec0:::0:0::50 VBox-Linux 00:01:00:01:dd:dd:dd:dd:dd:dd:dd:dd:dd:dd 1346267143 100 fec0:::0:0::50 VBox-Linux 00:01:00:01:dd:dd:dd:dd:dd:dd:dd:dd:dd:dd 1346267016 100 fec0:::0:0::50 VBox-Linux 00:01:00:01:dd:dd:dd:dd:dd:dd:dd:dd:dd:dd 1346266906 100 fec0:::0:0::50 VBox-Linux 00:01:00:01:dd:dd:dd:dd:dd:dd:dd:dd:dd:dd Regards, Hartmut 20:08:02.227950 IP6 (hlim 1, next-header UDP (17) payload length: 46) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 inf-req (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (elapsed-time 65535) (option-request DNS-server DNS-search-list lifetime)) 20:08:02.232950 IP6 (hlim 64, next-header UDP (17) payload length: 78) fe80:::::.547 fe80:::::.546: [udp sum ok] dhcp6 reply (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (server-ID hwaddr/time type 1 time 399398608 00aa) (DNS-server fec0:0:0:::2) (Client-FQDN)) 20:09:56.155950 IP6 (hlim 1, next-header UDP (17) payload length: 46) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 inf-req (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (elapsed-time 65535) (option-request DNS-server DNS-search-list lifetime)) 20:09:56.159950 IP6 (hlim 64, next-header UDP (17) payload length: 78) fe80:::::.547 fe80:::::.546: [udp sum ok] dhcp6 reply (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (server-ID hwaddr/time type 1 time 399398608 00aa) (DNS-server fec0:0:0:::2) (Client-FQDN)) 20:10:06.702950 IP6 (hlim 1, next-header UDP (17) payload length: 99) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=d29363 (elapsed-time 0) (client-ID hwaddr/time type 1 time 388005577 00bbb) (IA_NA IAID:184558125 T1:0 T2:0) (Client-FQDN) (vendor-class) (option-request DNS-search-list DNS-server vendor-specific-info Client-FQDN)) 20:10:06.710950 IP6 (hlim 64, next-header UDP (17) payload length: 164) fe80:::::.547 fe80:::::.546: [udp sum ok] dhcp6 advertise (xid=d29363 (client-ID hwaddr/time type 1 time 388005577 00bbb) (server-ID hwaddr/time type 1 time 399398608 00aa) (IA_NA IAID:184558125 T1:86400 T2:151200 (IA_ADDR fec0:::0:0::2 pltime:172800 vltime:172800) (status-code success) (preference 255)[|dhcp6ext]) (preference 255) (DNS-server fec0:0:0:::2) (Client-FQDN)) 20:10:07.706950 IP6 (hlim 1, next-header UDP (17) payload length: 145) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 request (xid=d29363 (elapsed-time 0) (client-ID hwaddr/time type 1 time 388005577 00bbb) (server-ID hwaddr/time type 1 time 399398608 00aa) (IA_NA IAID:184558125 T1:86400 T2:151200 (IA_ADDR fec0:::0:0::2 pltime:172800 vltime:172800)[|dhcp6ext]) (Client-FQDN) (vendor-class) (option-request DNS-search-list DNS-server vendor-specific-info Client-FQDN)) 20:10:07.729950 IP6 (hlim 64, next-header UDP (17) payload length: 164) fe80:::::.547 fe80:::::.546: [udp sum ok] dhcp6 reply (xid=d29363 (client-ID hwaddr/time type 1 time 388005577 00bbb) (server-ID hwaddr/time type 1 time 399398608 00aa) (IA_NA IAID:184558125 T1:86400 T2:151200 (IA_ADDR fec0:::0:0::2 pltime:172800 vltime:172800) (status-code success) (preference 255)[|dhcp6ext]) (preference 255) (DNS-server fec0:0:0:::2) (Client-FQDN)) 20:11:47.847950 IP6 (hlim 1, next-header UDP (17) payload length: 46) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 inf-req (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (elapsed-time 65535) (option-request DNS-server DNS-search-list lifetime)) 20:11:47.952950 IP6 (hlim 64, next-header UDP (17) payload length: 78) fe80:::::.547 fe80:::::.546: [udp sum ok] dhcp6 reply (xid=de7e4c (client-ID hwaddr/time type 1 time 1329653624 ) (server-ID hwaddr/time type 1 time 399398608 00aa) (DNS-server fec0:0:0:::2) (Client-FQDN)) 20:12:14.000950 IP6 (hlim 1, next-header UDP (17) payload length: 64) fe80:::::.546 ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=ffce30 (client-ID hwaddr/time type 1 time 384732886
Re: [Dnsmasq-discuss] New job vacancy - see details
Am 18.07.2012 21:18, schrieb Bill C Riemers: Is there anyway to update the mailing list to block this repeated spam? Currently only a few spam mails are send to the list. Any mail client shall be able to detect such spam and shall discard it. On Thunderbird, you have simply to click ones on 'this is junk' and you don't see any mail like the referenced one. Interesting aspect, your answer to such a mail wasn't detected as spam. IMHO, no effort is currently necessary. Regards Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] bracket missing
Hi, there is a bracket missing: diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 38c400c..7e289df 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -125,7 +125,7 @@ int main (int argc, char **argv) #endif #ifndef HAVE_TFTP - if (option_bool(OPT_TFTP) + if (option_bool(OPT_TFTP)) die(_(TFTP server not available: set HAVE_TFTP in src/config.h), NULL, EC_BADCONF); #endif Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] dnsmasq is broken
Hi, I'm using dnsmasq on an ADSL router (Speedport W500V with a modified BitSwitcher firmware). Dnsmasq is used as a dns resolver and a DHCP/DHCPv6 server. RA is done by radvd, because it is easier to manage the address for a 6to4 auto tunnel with radvd. since v2.62test4: The clients don't get an IPv6 address. They got an IPv4 address only. v2.62test3 works fine. since v2.62rc1: I'm not able to start dnsmasq, because it complains about the user and group of the lease file. It tries to access /var/lib/misc/dnsmasq.leases and /var/dnsmasq.leases, but /var/dnsmasq.leases is set in the config file by 'dhcp-leasefile=/var/dnsmasq.leases' only. The router has the users root:root and nobody:nogroup. v2.62test4 does start. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq is broken
Am 29.05.2012 18:10, schrieb Simon Kelley: On 29/05/12 15:13, e9hack wrote: since v2.62test4: The clients don't get an IPv6 address. They got an IPv4 address only. v2.62test3 works fine. I've fixed this in 2.62rc2. It was obvious when I thought about it. Thanks, it's working fine. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] no address range available for DHCPv6
Am 20.02.2012 12:24, schrieb Simon Kelley: The interface br0 has to have a IPV6 address on fec0:0:0:/64. If it doesn't, that's the simplest explanation of the problem. I did set the address in a wrong way. fec0:0:0:::1/128 didn't work. fec0:0:0:::1/64 does work. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] no address range available for DHCPv6
Hi, I'm trying to check the DHCP6 capability on my ADSL router. I add the following options to the dnsmasq.conf file: dhcp-range=fec0:0:0:::100,fec0:0:0:::,48h I get an error message in the log file of the router: daemon.warn dnsmasq-dhcp[2449]: no address range available for DHCPv6 request via br0 It seems that dnsmasq accepts the IPv6 address range: daemon.info dnsmasq-dhcp[2449]: DHCP, IP range fec0:0:0:::100 -- fec0:0:0:::, lease time 2d DHCP works in parallel without any problem. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] trouble with DHCPv6
Hi, I'm trying to test the latest test release with DHCPv6 support. My dnsmasq configuration is for DHCP only. For known hosts, I assign fixed IPv4 addresses. My configuration file contains statements like this: dhcp-host=00:11:F6:xx:xx:xx,vdr,192.168.25.6 The host file contains a IPv4 and a IPv6 address for this host: 192.168.25.6 vdr fdXX:::::xxff:fexx: vdr The IPv6 address is the ULA prefix with the self configured part from the host. If the host-file contains both addresses, dnsmasq denies the configured IPv4 address. The log contains the following messages: daemon.info dnsmasq-dhcp[2904]: DHCPREQUEST(br0) 192.168.25.6 00:11:F6:xx:xx:xx daemon.info dnsmasq-dhcp[2904]: DHCPNAK(br0) 192.168.25.6 00:11:F6:xx:xx:xx address not available daemon.info dnsmasq-dhcp[2904]: DHCPDISCOVER(br0) 00:11:F6:xx:xx:xx daemon.info dnsmasq-dhcp[2904]: DHCPOFFER(br0) 192.168.25.119 00:11:F6:xx:xx:xx daemon.info dnsmasq-dhcp[2904]: DHCPREQUEST(br0) 192.168.25.119 00:11:F6:xx:xx:xx daemon.info dnsmasq-dhcp[2904]: DHCPACK(br0) 192.168.25.119 00:11:F6:xx:xx:xx vdr daemon.warn dnsmasq-dhcp[2904]: not giving name vdr.lan to the DHCP lease of 192.168.25.119 because the name exists in /var/hosts with address 192.168.25.6 daemon.warn dnsmasq-dhcp[2904]: not giving name vdr to the DHCP lease of 192.168.25.119 because the name exists in /var/hosts with address 192.168.25.6 daemon.info dnsmasq-dhcp[2904]: DHCPREQUEST(br0) 192.168.25.119 00:11:F6:xx:xx:xx daemon.info dnsmasq-dhcp[2904]: DHCPACK(br0) 192.168.25.119 00:11:F6:xx:xx:xx vdr daemon.warn dnsmasq-dhcp[2904]: not giving name vdr.lan to the DHCP lease of 192.168.25.119 because the name exists in /var/hosts with address 192.168.25.6 daemon.warn dnsmasq-dhcp[2904]: not giving name vdr to the DHCP lease of 192.168.25.119 because the name exists in /var/hosts with address 192.168.25.6 dnsmasq itself runs on ADSL router with IPv4 and IPv6 support. The IPv6 prefix is announce with radvd. If I remove the 'goto again' statement at the end of dhcp_update_configs(), I don't get this problem. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] trouble with DHCPv6
Am 18.02.2012 18:14, schrieb Simon Kelley: Many thanks for spotting that. I just pushed 2.60test13, which should fix it. Yes, the problem is fixed now. Thanks. Regards, Hartmut ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss