pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/dnsmasq
Module Name: pkgsrc
Committed By: adam
Date: Fri Sep 17 21:04:40 UTC 2021
Modified Files:
pkgsrc/net/dnsmasq: Makefile distinfo
Log Message:
dnsmasq: updated to 2.86
version 2.86
Handle DHCPREBIND requests in the DHCPv6 server code.
Thanks to Aichun Li for spotting this omission, and the initial
patch.
Fix bug which caused dnsmasq to lose track of processes forked
to handle TCP DNS connections under heavy load. The code
checked that at least one free process table slot was
available before listening on TCP sockets, but didn't take
into account that more than one TCP connection could
arrive, so that check was not sufficient to ensure that
there would be slots for all new processes. It compounded
this error by silently failing to store the process when
it did run out of slots. Even when this bug is triggered,
all the right things happen, and answers are still returned.
Only under very exceptional circumstances, does the bug
manifest itself: see
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q2/014976.html
Thanks to Tijs Van Buggenhout for finding the conditions under
which the bug manifests itself, and then working out
exactly what was going on.
Major rewrite of the DNS server and domain handling code.
This should be largely transparent, but it drastically
improves performance and reduces memory foot-print when
configuring large numbers domains of the form
local=/adserver.com/
or
local=/adserver.com/#
Lookup times now grow as log-to-base-2 of the number of domains,
rather than greater than linearly, as before.
The change makes multiple addresses associated with a domain work
address=/example.com/1.2.3.4
address=/example.com/5.6.7.8
It also handles multiple upstream servers for a domain better; using
the same try/retry algorithms as non domain-specific servers. This
also applies to DNSSEC-generated queries.
Finally, some of the oldest and gnarliest code in dnsmasq has had
a significant clean-up. It's far from perfect, but it _is_ better.
Revise resource handling for number of concurrent DNS queries. This
used to have a global limit, but that has a problem when using
different servers for different upstream domains. Queries which are
routed by domain to an upstream server which is not responding will
build up and trigger the limit, which breaks DNS service for
all other domains which could be handled by other servers. The
change is to make the limit per server-group, where a server group
is the set of servers configured for a particular domain. In the
common case, where only default servers are declared, there is
no effective change.
Improve efficiency of DNSSEC. The sharing point for DNSSEC RR data
used to be when it entered the cache, having been validated. After
that queries requiring the KEY or DS records would share the cached
values. There is a common case in dual-stack hosts that queries for
A and AAAA records for the same domain are made simultaneously.
If required keys were not in the cache, this would result in two
requests being sent upstream for the same key data (and all the
subsequent chain-of-trust queries.) Now we combine these requests
and elide the duplicates, resulting in fewer queries upstream
and better performance. To keep a better handle on what's
going on, the "extra" logging mode has been modified to associate
queries and answers for DNSSEC queries in the same way as ordinary
queries. The requesting address and port have been removed from
DNSSEC logging lines, since this is no longer strictly defined.
Connection track mark based DNS query filtering. Thanks to
Etan Kissling for implementing this It extends query filtering
support beyond what is currently possible
with the `--ipset` configuration option, by adding support for:
1) Specifying allowlists on a per-client basis, based on their
associated Linux connection track mark.
2) Dynamic configuration of allowlists via Ubus.
3) Reporting when a DNS query resolves or is rejected via Ubus.
4) DNS name patterns containing wildcards.
Disallowed queries are not forwarded; they are rejected
with a REFUSED error code.
Allow smaller than 64 prefix lengths in synth-domain, with caveats.
--synth-domain=1234:4567::/56,example.com is now valid.
Make domains generated by --synth-domain appear in replies
when in authoritative mode.
Ensure CAP_NET_ADMIN capability is available when
conntrack is configured. Thanks to Yick Xie for spotting
the lack of this.
When --dhcp-hostsfile --dhcp-optsfile and --addn-hosts are
given a directory as argument, define the order in which
files within that directory are read (alphabetical order
of filename). Thanks to Ed Wildgoose for the initial patch
and motivation for this.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/net/dnsmasq/Makefile
cvs rdiff -u -r1.41 -r1.42 pkgsrc/net/dnsmasq/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/dnsmasq/Makefile
diff -u pkgsrc/net/dnsmasq/Makefile:1.45 pkgsrc/net/dnsmasq/Makefile:1.46
--- pkgsrc/net/dnsmasq/Makefile:1.45 Mon Apr 12 10:06:45 2021
+++ pkgsrc/net/dnsmasq/Makefile Fri Sep 17 21:04:39 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2021/04/12 10:06:45 adam Exp $
+# $NetBSD: Makefile,v 1.46 2021/09/17 21:04:39 adam Exp $
-DISTNAME= dnsmasq-2.85
+DISTNAME= dnsmasq-2.86
CATEGORIES= net
MASTER_SITES= https://thekelleys.org.uk/dnsmasq/
EXTRACT_SUFX= .tar.xz
Index: pkgsrc/net/dnsmasq/distinfo
diff -u pkgsrc/net/dnsmasq/distinfo:1.41 pkgsrc/net/dnsmasq/distinfo:1.42
--- pkgsrc/net/dnsmasq/distinfo:1.41 Mon Apr 12 10:06:45 2021
+++ pkgsrc/net/dnsmasq/distinfo Fri Sep 17 21:04:39 2021
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.41 2021/04/12 10:06:45 adam Exp $
+$NetBSD: distinfo,v 1.42 2021/09/17 21:04:39 adam Exp $
-SHA1 (dnsmasq-2.85.tar.xz) = 256ec628587ab2b20bba3fc2773046dab8f2874c
-RMD160 (dnsmasq-2.85.tar.xz) = eb65f0b70adbe8ce3404dc492c20fc209216f18e
-SHA512 (dnsmasq-2.85.tar.xz) = 8beefe76b46f7d561f40d0900ba68b260a199cb62ab5b653746e3a1104c04fb8899b9e7a160a1be4fe8782bfb1607b556e9ffb9c25c4e99653e4bc74fcc03b09
-Size (dnsmasq-2.85.tar.xz) = 518316 bytes
+SHA1 (dnsmasq-2.86.tar.xz) = 46718f4005c042fdf05803e4dedb554f5df90172
+RMD160 (dnsmasq-2.86.tar.xz) = c00d25ad591de97e8969b53106d2416907af3dfa
+SHA512 (dnsmasq-2.86.tar.xz) = 487eae0afbc8bb3d5282a729ffb0cb2c9bdc7d8e46e2e8aa114cd7c5d82e0fd66f49926e7fa4028577548d6f57e8a865aca17f33963a589874584d608ab2deaf
+Size (dnsmasq-2.86.tar.xz) = 531404 bytes
SHA1 (patch-src_bpf.c) = 4115a5391f57564663bbfc448fbb865c370318a6
SHA1 (patch-src_dump.c) = 3e7553e8ed2444536ba94187f7a100a9abdbb353
Home |
Main Index |
Thread Index |
Old Index