MiniDNS / minidns

DNS library for Android and Java SE
Other
220 stars 61 forks source link

Using hardcoded fallback DNS even when a server is configured? #135

Closed singpolyma closed 7 months ago

singpolyma commented 8 months ago

Any idea why the fallback DNS would be used by DnssecResolverApi when the user does have a pihole on their LAN? Issue is that they have firewalled all traffic over 53 except from the pihole, so the fallback just fails.

Flowdalic commented 8 months ago

Hi @singpolyma thanks for your interest in MiniDNS.

I think this question, and your other questions #131 and #132, may be answered if you increase the JUL log level of the org.minidns package. MiniDNS already uses JUL extensively and ideally would tell you which action it took and why it entered a fallback path. That said, I can't rule out that in some cases log statements are missing. If you identify such situations, then I'd be more than happy to add additional log statements and/or accept PRs doing so.

singpolyma commented 8 months ago

What do I need to do to increase JUL level for the package?

Flowdalic commented 8 months ago

What do I need to do to increase JUL level for the package?

That can depend on different factors, like the platform and/or the actual log backend being used. Often it should be sufficient to set the root logger to FINE(ER|EST). If I am not mistaken, this would be done by Logger.getLogger("").setLevel(Level.FINE);

singpolyma commented 7 months ago

this particular issue seems to have been caused by the user's DNS server returning servfail for all SRV lookups