mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
796 stars 79 forks source link

Bug: No clear reason why not being set as default dns #578

Closed mageddo closed 1 month ago

mageddo commented 1 month ago

What is Happening

11:43:11.065 [Thread-2       ] INF c.m.d.dnsconfigurator.DnsConfigurators            l=113  m=getInstance0                    usingDnsConfigurator=DnsConfiguratorLinux
11:43:11.066 [Thread-2       ] INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=91   m=lambda$findBestConfFile$0       status=noValidConfFile, file=/host/etc/systemd/resolved.conf
11:43:11.066 [Thread-2       ] INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=91   m=lambda$findBestConfFile$0       status=noValidConfFile, file=/host/etc/resolv.conf
11:43:11.066 [Thread-2       ] INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=91   m=lambda$findBestConfFile$0       status=noValidConfFile, file=/etc/systemd/resolved.conf
11:43:11.066 [Thread-2       ] INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=91   m=lambda$findBestConfFile$0       status=noValidConfFile, file=/etc/resolv.conf
11:43:11.066 [Thread-2       ] INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=122  m=init                            status=using, configFile=null

What is Expected

Log what is the cause the file couldn't be used to configure DPS as default DNS

Specs

mageddo commented 1 month ago

Fixed at #585 .

Log example

INF c.m.d.dnsconfigurator.linux.DnsConfiguratorLinux  l=98   m=lambda$findBestConfFile$0 status=noValidConfFile, file=/host/etc/resolv.conf, condition=PathExistsPredicate