Dnsproxy errors

Hi,

I use 23.05 snapshot release and I updated dnsproxy to the last version, 73.3 but I got errors, maybe someone could help me,
thanks

Sun Nov 17 15:55:38 2024 daemon.info dnsproxy[11959]: 2024/11/17 20:55:38.765817 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:55:38 2024 daemon.info dnsproxy[11959]: jail: jail (11966) exited with exit: 1
Sun Nov 17 15:55:43 2024 daemon.info dnsproxy[11993]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:55:43 2024 daemon.info dnsproxy[11993]: 2024/11/17 20:55:43.786951 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:55:43 2024 daemon.info dnsproxy[11993]: 2024/11/17 20:55:43.787718 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:55:43 2024 daemon.info dnsproxy[11993]: jail: jail (11994) exited with exit: 1
Sun Nov 17 15:55:48 2024 daemon.info dnsproxy[11999]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:55:48 2024 daemon.info dnsproxy[11999]: 2024/11/17 20:55:48.815366 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:55:48 2024 daemon.info dnsproxy[11999]: 2024/11/17 20:55:48.816176 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:55:48 2024 daemon.info dnsproxy[11999]: jail: jail (12000) exited with exit: 1
Sun Nov 17 15:55:53 2024 daemon.info dnsproxy[12016]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:55:53 2024 daemon.info dnsproxy[12016]: 2024/11/17 20:55:53.842107 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:55:53 2024 daemon.info dnsproxy[12016]: 2024/11/17 20:55:53.842909 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:55:53 2024 daemon.info dnsproxy[12016]: jail: jail (12020) exited with exit: 1
Sun Nov 17 15:55:55 2024 daemon.info dnsproxy[12070]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:55:55 2024 daemon.info dnsproxy[12070]: 2024/11/17 20:55:55.408250 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:55:55 2024 daemon.info dnsproxy[12070]: 2024/11/17 20:55:55.408740 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:55:55 2024 daemon.info dnsproxy[12070]: jail: jail (12075) exited with exit: 1
Sun Nov 17 15:56:00 2024 daemon.info dnsproxy[12105]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:56:00 2024 daemon.info dnsproxy[12105]: 2024/11/17 20:56:00.436330 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:56:00 2024 daemon.info dnsproxy[12105]: 2024/11/17 20:56:00.437112 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:56:00 2024 daemon.info dnsproxy[12105]: jail: jail (12106) exited with exit: 1
Sun Nov 17 15:56:05 2024 daemon.info dnsproxy[12111]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:56:05 2024 daemon.info dnsproxy[12111]: 2024/11/17 20:56:05.467346 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:56:05 2024 daemon.info dnsproxy[12111]: 2024/11/17 20:56:05.468116 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:56:05 2024 daemon.info dnsproxy[12111]: jail: jail (12112) exited with exit: 1
Sun Nov 17 15:56:10 2024 daemon.info dnsproxy[12122]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:56:10 2024 daemon.info dnsproxy[12122]: 2024/11/17 20:56:10.497522 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:56:10 2024 daemon.info dnsproxy[12122]: 2024/11/17 20:56:10.498302 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:56:10 2024 daemon.info dnsproxy[12122]: jail: jail (12123) exited with exit: 1
Sun Nov 17 15:56:15 2024 daemon.info dnsproxy[12129]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:56:15 2024 daemon.info dnsproxy[12129]: 2024/11/17 20:56:15.528665 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:56:15 2024 daemon.info dnsproxy[12129]: 2024/11/17 20:56:15.529444 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:56:15 2024 daemon.info dnsproxy[12129]: jail: jail (12130) exited with exit: 1
Sun Nov 17 15:56:20 2024 daemon.info dnsproxy[12135]: jail: exec-ing /usr/bin/dnsproxy
Sun Nov 17 15:56:20 2024 daemon.info dnsproxy[12135]: 2024/11/17 20:56:20.559969 INFO dnsproxy starting version=v0.73.3 revision="" branch="" commit_time=""
Sun Nov 17 15:56:20 2024 daemon.info dnsproxy[12135]: 2024/11/17 20:56:20.560769 ERROR running dnsproxy err="configuring proxy: creating default handler: open etc/hosts: no such file or directory"
Sun Nov 17 15:56:20 2024 daemon.info dnsproxy[12135]: jail: jail (12136) exited with exit: 1
Sun Nov 17 15:56:20 2024 daemon.info procd: Instance dnsproxy::dnsproxy s in a crash loop 6 crashes, 0 seconds since last crash```

`# For documents, please see https://github.com/AdguardTeam/dnsproxy#usage

config dnsproxy 'global'
        option enabled '1'
        list listen_addr '127.0.0.1'
        list listen_port '5353'
        option log_file ''
        option all_servers '0'
        option fastest_addr '1'
        option http3 '1'
        option insecure '0'
        option ipv6_disabled '1'
        option timeout ''
        option max_go_routines ''
        option rate_limit ''
        option refuse_any '0'
        option udp_buf_size ''
        option verbose '0'

config dnsproxy 'bogus_nxdomain'
        list ip_addr ''

config dnsproxy 'cache'
        option enabled '1'
        option cache_optimistic '1'
        option size '6553500'
        option min_ttl ''
        option max_ttl ''

config dnsproxy 'dns64'
        option enabled '0'
        option dns64_prefix '64:ff9b::'

config dnsproxy 'edns'
        option enabled '0'
        option edns_addr ''

config dnsproxy 'cache'
        option enabled '1'
        option cache_optimistic '1'
        option size '6553500'
        option min_ttl ''
        option max_ttl ''

config dnsproxy 'dns64'
        option enabled '0'
        option dns64_prefix '64:ff9b::'

config dnsproxy 'edns'
        option enabled '0'
        option edns_addr ''

config dnsproxy 'private_rdns'
        option enabled '0'
        list upstream '127.0.0.1:53'

config dnsproxy 'servers'
 list bootstrap '1.1.1.1:53'
        list fallback 'https://dns.cloudflare.com/dns-query'
       list upstream 'https://dns.controld.com/xxxxxx/dns-query'
        list upstream 'h3://security.Cloudflare-dns.com/dns-query'
        list upstream 'https://dns9.quad9.net/dns-query'

config dnsproxy 'tls'
        option enabled '0'
        option tls_crt ''
        option tls_key ''
        option https_port '8443'
        option tls_port '853'
        option quic_port '853'

You should ask where you got the idea to stuff snapshot package on stable release.

1 Like

Usually it worked with that package

Install applicable vetsion. Like with auc/attendedsysupgrade.
Nothing will make your concoction work.