mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
e5e8c14d87bfe5016789739b7f4d897ad4e5867a
This was kinda strange before, with a lot of cargo-cult copied code, and no clear strategy. Now it works like this: When talking upstream we always add a pseudoheader, and set the UDP packet size to --edns-packet-max unless we've had problems talking to a server, when it's reduced to 1280 if that fixes things. Answering queries from downstream, we get the answer (either from upstream or local data) If local data won't fit the advertised size (or 512 if there's not pseudoheader) return truncated. If upstream returns truncated, do likewise. If upstream is OK, but the answer is too big for downstream, truncate the answer.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%