Added dig checks for Cloudflare and Google DNS resolvers.
EditImproved output formatting with clearer headers and status markers.
EditModified script to conditionally show 'Common fixes' only on failures.
EditValidated script syntax and output behavior.
VerifyI want to modify /usr/local/bin/nextdns-doctor script to also check if dig works when using cloudflare or Google DNS as the resolver. This can help identify issues where nextdns is specifically unable to resolve domains. Let me know if this check is already covered.
Done.
This check was not already covered directly. The script had:
dig @127.0.0.1 and dig @::1 — checks NextDNS local daemondscacheutilBut it did not test public DNS resolvers like Cloudflare or Google directly.
I added a new section:
It now checks:
Behavior:
PASS if public DNS worksWARN if public DNS fails, since some networks intentionally block external DNSI also ran:
and syntax is OK.
can you also make the ouput look cleaner
can you also make the ouput look cleaner
resume
Done. I cleaned up the output formatting in /usr/local/bin/nextdns-doctor.
Changes include:
▸ Section name✓ PASS, ! WARN, ✗ FAILdig output — shows one IP plus (+N more) instead of dumping all answersI also ran:
and executed the script to verify the output looks good.
Only show the common fixes section if something has failed
Done.
Common fixes now only prints when FAIL > 0.
I also removed a stray Timestamp... log header from the recent logs output while validating the script.
Syntax check passes: