DNSMASQ_WARN reducing DNS packet size
Objective: Get rid of the warnings in the Admin Web Interface "reducing DNS packet size for nameserver OpenDNS Resolver to 1280"
STEP 1:
You can get rid of the warning by adding a config file like /etc/dnsmasq.d/99-edns.conf
and using an editor like nano or vi, add the following line below:
edns-packet-max=1280
STEP 2:
Then run pihole restartdns
and your Pi-hole will not even try with larger packet sizes (our default is 4096).
pihole restartdns
More Information on the DNS Server accepted Maximum Packet sizes below:
Because this doesn't seem to be documented anywhere properly, I probed all the DNS servers currently offered by Pi-hole to find out their maximum DNS packet size:
Name |
Address |
Maximum packet size |
---|---|---|
Google (ECS) |
|
1400 |
|
1400 |
|
|
1400 |
|
|
1400 |
|
OpenDNS (ECS) |
|
1410 |
|
1410 |
|
|
1410 |
|
|
1410 |
|
Level3 |
|
8192 |
|
8192 |
|
Comodo |
|
4096 |
|
4096 |
|
DNS.WATCH |
|
4096 |
|
4096 |
|
|
4096 |
|
|
4096 |
|
Quad9 (filtered, DNSSEC) |
|
1232 |
|
1232 |
|
|
1232 |
|
|
1232 |
|
Quad9 (unfiltered, no DNSSEC) |
|
1232 |
|
1232 |
|
|
1232 |
|
|
1232 |
|
Quad9 (filtered + ECS) |
|
512 |
|
512 |
|
|
1232 |
|
Cloudflare |
|
1452 |
|
1452 |
|
|
1452 |
|
|
1452 |