Dns-crypt not working after hard reset and restoration of settings

I just resetted my router (using firstboot command in failsafe mode), and then I reinstalled all additional packages I had before, and using LuCI to restore from a fresh backup. Now DNS-crypt doesn't work. It worked perfectly before, and I used this guide to set it up.

Now; when I run logread -e dnscrypt-proxy; netstat -l -n -p | grep -e dnscrypt-proxy

it shows

Tue Jan 19 19:31:40 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:40] [NOTICE] dnscrypt-proxy 2.0.44
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:40] [NOTICE] Network connectivity detected
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:40] [NOTICE] Now listening to 127.0.0.53:53 [UDP]
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:41] [NOTICE] Now listening to 127.0.0.53:53 [TCP]
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:41] [NOTICE] Source [relays] loaded
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:41] [NOTICE] Source [public-resolvers] loaded
Tue Jan 19 19:31:41 2021 daemon.err dnscrypt-proxy[2241]: [2021-01-19 18:31:41] [FATAL] No servers configured

However, the config file is restored and contains the line: server_names = ['doh-northeu-pi-dns', 'doh-centraleu-pi-dns'].

I can't resolve any hosts from the router.

Also /etc/init.d/dnsmasq restart gives

udhcpc: started, v1.30.1 udhcpc: sending discover udhcpc: no lease, failing

What could be the issue?

1 Like

It looks like dnscrypt-proxy2 relies on the server list downloaded from the Internet:

The servers you have configured do not present in the current server list:

So, update the config to use up-to-date server names.

Thank you @vgaetera! That's it! Somehow the old config worked fine even though it used the outdated server names before the reset.

1 Like

The service downloads the server list and uses its local copy.
However the directory /etc/dnscrypt-proxy2/ is not preserved by default.
You can customize backup settings and include it in the backup list.

Oh, didn't know that. Thanks, I'll check it out!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.