-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update embedded dnsmasq to v2.88test3 #1469
Commits on Nov 9, 2022
-
By default, when sending a query via random ports to multiple upstream servers or retrying a query dnsmasq will use a single random port for all the tries/retries. This option allows a larger number of ports to be used, which can increase robustness in certain network configurations. Note that increasing this to more than two or three can have security and resource implications and should only be done with understanding of those. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for f3bf548 - Browse repository at this point
Copy the full SHA f3bf548View commit details -
This gives dnsmasq the ability to originate retries for upstream DNS queries itself, rather than relying on the downstream client. This is most useful when doing DNSSEC over unreliable upstream network. It comes with some cost in memory usage and network bandwidth. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for c7a4c2d - Browse repository at this point
Copy the full SHA c7a4c2dView commit details -
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for cf06741 - Browse repository at this point
Copy the full SHA cf06741View commit details -
Remove fast-retry development logging.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 00f7c4e - Browse repository at this point
Copy the full SHA 00f7c4eView commit details -
Fix namebuff overwrite leading to wrong log after socket bind warning.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for d4065af - Browse repository at this point
Copy the full SHA d4065afView commit details -
Second try at port-limit option.
1) It's expected to fail to bind a new source port when they are scarce, suppress warning in log in this case. 2) Optimse bind_local when max_port - min_port is small. There's no randomness in this case, so we try all possible source ports rather than poking at random ones for an arbitrary number of tries. 3) In allocate_rfd() handle the case that all available source ports are already open. In this case we need to pick an existing socket/port to use, such that it has a different port from any we already hold. This gives the required property that the set of ports utilised by any given query is set by --port-limit and we don't re-use any until we have port-limit different ones. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 281063a - Browse repository at this point
Copy the full SHA 281063aView commit details -
Further optimisation of --port-limit.
No longer try and fail to open every port when the port range is in complete use; go straight to re-using an existing socket. Die at startup if port range is smaller than --port-limit, since the code behaves badly in this case. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 10dcef3 - Browse repository at this point
Copy the full SHA 10dcef3View commit details -
Add GetServerMetrics method to DBus interface.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 7fe84ae - Browse repository at this point
Copy the full SHA 7fe84aeView commit details -
Add stale cache replies to metrics.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 8f2d7b5 - Browse repository at this point
Copy the full SHA 8f2d7b5View commit details -
Return EDE_STALE extended error when returning stale data from cache.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 11119f7 - Browse repository at this point
Copy the full SHA 11119f7View commit details -
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for ee80725 - Browse repository at this point
Copy the full SHA ee80725View commit details -
Make fast-retry more configurable and do exponential backoff.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 039e2b3 - Browse repository at this point
Copy the full SHA 039e2b3View commit details -
Add metric for queries which never see an answer.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 85fdfb0 - Browse repository at this point
Copy the full SHA 85fdfb0View commit details -
Count NXDOMAIN replies from each server.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 3d5b4e2 - Browse repository at this point
Copy the full SHA 3d5b4e2View commit details -
Combine server stats from all records for the same server in DBUS met…
…hod. The DBUS per-server stats method should combine the stats from different records (for different domains) in the same way at the logging code. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 7cae4bd - Browse repository at this point
Copy the full SHA 7cae4bdView commit details -
Keep a per-DNS-server moving average of query latency.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for b9957e4 - Browse repository at this point
Copy the full SHA b9957e4View commit details -
Tweak server-selection logic in the fast-retry case.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 861f529 - Browse repository at this point
Copy the full SHA 861f529View commit details -
Split failed queries in retries in stat counting.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for a599278 - Browse repository at this point
Copy the full SHA a599278View commit details -
Initialise modified-moving-average latency calc better.
Use the first value, rather than initialising at zero, which takes many queries to converge. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5935160 - Browse repository at this point
Copy the full SHA 5935160View commit details -
Don't exclude stale-cache answers from "local answered" metric.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 0fd2a13 - Browse repository at this point
Copy the full SHA 0fd2a13View commit details -
Optimise cache code when stale caching in use.
Exclude DNSSEC entries from stale caching. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for f4e3592 - Browse repository at this point
Copy the full SHA f4e3592View commit details -
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 976e932 - Browse repository at this point
Copy the full SHA 976e932View commit details -
Fix bug in --dynamic-host when interface has /16 IPv4 address.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5929989 - Browse repository at this point
Copy the full SHA 5929989View commit details -
Update embedded dnsmasq to v2.88test1
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for d398298 - Browse repository at this point
Copy the full SHA d398298View commit details -
Locally blocked queries are not stale
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 0dc0533 - Browse repository at this point
Copy the full SHA 0dc0533View commit details -
Improve logging of DNS record source from --hostsdir files.
Patch author Dominik Derigs <dl6er@dl6er.de> with subsequent bugfixes and tweaks from Simon Kelley. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 652c1e8 - Browse repository at this point
Copy the full SHA 652c1e8View commit details -
Enhance --hostdir so that records are automatically removed when re-r…
…eading. Initial patch from Dominik Derigs, re-written by Simon Kelley. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for e8d19f7 - Browse repository at this point
Copy the full SHA e8d19f7View commit details -
Handle multiple addresses when removing duplicates in host files.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for a1b66e8 - Browse repository at this point
Copy the full SHA a1b66e8View commit details -
Fix loss of DNS servers on config reload.
A bug, introduced in 2.87, which could result in DNS servers being removed from the configuration when reloading server configuration from DBus, or re-reading /etc/resolv.conf Only servers from the same source should be replaced, but some servers from other sources (ie hard coded or another dynamic source) could mysteriously disappear. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 4cfb84a - Browse repository at this point
Copy the full SHA 4cfb84aView commit details -
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for cdf9d9d - Browse repository at this point
Copy the full SHA cdf9d9dView commit details -
Fix in dhcpv4 rapid-commit code.
1) Cosmetic: don't log the tags twice. 2) Functional. If a host has an old lease for a different address, the rapid-commit will appear to work, but the old lease will not be removed and the new lease will not be recorded, so the client and server will have conflicting state, leading to problems later. Signed-off-by: Dominik Derigs <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 3a6dd32 - Browse repository at this point
Copy the full SHA 3a6dd32View commit details -
Do not (try to) re-read deleted files inside a --hostsdir.
Signed-off-by: Dominik Derigs <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 779ba10 - Browse repository at this point
Copy the full SHA 779ba10View commit details -
Inotify: make "flushed" log message more understandable.
Saying we've "flushed x outdated entries" is confusing, since the count is the total number of entries in the modified file, most of which are going to get added straight back when the file is re-read. The log now looks like dnsmasq: inotify: /tmp/dir/1 (new or modified) dnsmasq: inotify: flushed 1 addresses read from /tmp/dir/1 dnsmasq: read /tmp/dir/1 - 2 addresses which hopefully make it more obvious that /tmp/dir/1 contained one address before, and now contains two. Signed-off-by: Dominik Derigs <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 8aba33f - Browse repository at this point
Copy the full SHA 8aba33fView commit details -
Reconcile "names" and "address" counts when reading hostfiles.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 2bf2863 - Browse repository at this point
Copy the full SHA 2bf2863View commit details -
Allow domain names as well is IP addresses in --server options.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 703ee7e - Browse repository at this point
Copy the full SHA 703ee7eView commit details -
Fix breakage of --local=/domain.name/1.2.3.4 in immediately previous …
…commit. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 1b2612c - Browse repository at this point
Copy the full SHA 1b2612cView commit details -
Extend specifying DNS servers by domain-name to --rev-server
Also Dbus SetDomainServers method. Revert getaddrinfo hints.ai_socktype to SOCK_DGRAM to eliminate duplicating every address three times for DGRAM, STREAM and RAW in the results. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 891acaa - Browse repository at this point
Copy the full SHA 891acaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 801f034 - Browse repository at this point
Copy the full SHA 801f034View commit details -
Add support for dnsmasq flags F_SRV and F_STALE
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 42c7105 - Browse repository at this point
Copy the full SHA 42c7105View commit details -
Allow FTL to analyze stale cache replies. They are assigned to a new …
…query type (17) Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 7ecd358 - Browse repository at this point
Copy the full SHA 7ecd358View commit details -
Call freeaddrinfo() in domain_rev[46]()
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 0ae86d2 - Browse repository at this point
Copy the full SHA 0ae86d2View commit details -
Make specifying nameservers by name work for DBus API.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for ed8d37b - Browse repository at this point
Copy the full SHA ed8d37bView commit details -
Fix --server with multiple domains.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 1449829 - Browse repository at this point
Copy the full SHA 1449829View commit details -
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 2a94aef - Browse repository at this point
Copy the full SHA 2a94aefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5556dd5 - Browse repository at this point
Copy the full SHA 5556dd5View commit details -
Fix incorrect three-way merge happened when importing the stale-cache…
… patch Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 4b798e8 - Browse repository at this point
Copy the full SHA 4b798e8View commit details