Closed cyformatician closed 1 month ago
Try command: uci set dnsproxy.hosts.enabled=false uci commit dnsproxy
Then restart the service.
No change
Sun Sep 22 18:36:08 2024 daemon.info dnsproxy[27626]: jail: exec-ing /usr/bin/dnsproxy
Sun Sep 22 18:36:08 2024 daemon.info dnsproxy[27626]: 2024/09/22 14:36:08.556353 INFO dnsproxy starting version=v0.73.2 revision=011f37a branch=HEAD commit_time=1726113961
Sun Sep 22 18:36:08 2024 daemon.info dnsproxy[27626]: 2024/09/22 14:36:08.556592 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Sep 22 18:36:08 2024 daemon.info dnsproxy[27626]: jail: jail (27651) exited with exit: 1
Sun Sep 22 18:36:13 2024 daemon.info dnsproxy[27672]: jail: exec-ing /usr/bin/dnsproxy
Sun Sep 22 18:36:13 2024 daemon.info dnsproxy[27672]: 2024/09/22 14:36:13.606184 INFO dnsproxy starting version=v0.73.2 revision=011f37a branch=HEAD commit_time=1726113961
Sun Sep 22 18:36:13 2024 daemon.info dnsproxy[27672]: 2024/09/22 14:36:13.606389 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Sep 22 18:36:13 2024 daemon.info dnsproxy[27672]: jail: jail (27673) exited with exit: 1
Config:
config dnsproxy 'global'
option enabled '1'
list listen_addr '127.0.0.1'
list listen_addr '::1'
list listen_port '5353'
option http3 '0'
option insecure '0'
option ipv6_disabled '0'
option refuse_any '0'
option verbose '0'
option upstream_mode 'load_balance'
config dnsproxy 'bogus_nxdomain'
list ip_addr ''
config dnsproxy 'cache'
option enabled '0'
option cache_optimistic '0'
option size '65535'
config dnsproxy 'dns64'
option enabled '0'
option dns64_prefix '64:ff9b::/96'
config dnsproxy 'edns'
option enabled '0'
config dnsproxy 'hosts'
option enabled 'false'
list hosts_files ''
config dnsproxy 'private_rdns'
option enabled '0'
list upstream '127.0.0.1'
config dnsproxy 'servers'
list bootstrap '1.1.1.3:53'
list upstream 'REDACTED'
list upstream 'REDACTED'
Seems the cmdline option is broken this time. Will check it tomorrow.
This is stupid tbh, related options must be set with an specific order, and --hosts-file-enabled
seems broken in this version.
Your fix works as expected - thank you! I see you've also added the mount option due to hosts files being in ujail, explains why hosts_files=etc/hosts wasn't being recognized previously.
Cheers!
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.167167 INFO dnsproxy starting version=v0.73.2 revision=011f37a branch=HEAD commit_time=1726113961
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.167832 INFO upstream mode is set prefix=dnsproxy mode=load_balance
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.167863 INFO cache disabled prefix=dnsproxy
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.167878 INFO starting dns proxy server prefix=dnsproxy
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.167921 INFO creating udp server socket prefix=dnsproxy addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168117 INFO listening to udp prefix=dnsproxy addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168141 INFO creating udp server socket prefix=dnsproxy addr=[::1]:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168228 INFO listening to udp prefix=dnsproxy addr=[::1]:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168262 INFO creating tcp server socket prefix=dnsproxy addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168399 INFO listening to tcp prefix=dnsproxy addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168421 INFO creating tcp server socket prefix=dnsproxy addr=[::1]:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168520 INFO listening to tcp prefix=dnsproxy addr=[::1]:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168801 INFO entering udp listener loop prefix=dnsproxy addr=[::1]:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168933 INFO entering listener loop prefix=dnsproxy proto=tcp addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168803 INFO entering udp listener loop prefix=dnsproxy addr=127.0.0.1:5353
Mon Sep 23 14:07:22 2024 daemon.info dnsproxy[13208]: 2024/09/23 10:07:22.168964 INFO entering listener loop prefix=dnsproxy proto=tcp addr=[::1]:5353
Sorry for the inconvenience and thank you for the test!
Maintainer: @1715173329 Environment: platform independent
Description:
Updating to 0.73.2 causes dnsproxy to fail to start as some changes (regression) to the way configurations are handled were made at the source - https://github.com/AdguardTeam/dnsproxy/commit/011f37a4992822fe2e5ac8f11b3d585321696f2c in response to https://github.com/AdguardTeam/dnsproxy/issues/182
Only way to get dnsproxy running again using current configuration format/handlers is by reverting dnsproxy binary to 0.73.1 ... I've tested with both my current configuration as well as with a standard configuration (pushed by openwrt).
Config used: