Dnscrypt-proxy service not starting

I have a Flint 2 router and it's already come with dnscrypt-proxy2 package installed on it. I thought this was a good sign and it showed I could use it w/o any issues; However, I have not been able to start its service via the command:
/etc/init.d/dnscrypt-proxy start

The command: /etc/init.d/dnscrypt-proxy status
shows the status as inactive.

However, when I run the command directly:
dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml

It works. Is there anything I can do to fix the issue with the dnscrypt-proxy service?

Why do you want to start via shell?

You can use the UI to use dnscrypt directly.

1 Like

Hi, thanks for your reply.
I haven't seen this page in my router's settings!
I got my router a few days ago and since I don't have access to the modem in my building, I connected the router to the existing wifi. Maybe this is the reason I don't see this setting?

It seems turning AdGaurd on makes DnsCrypt-Proxy inactive! I can see the above setting only when I deactivate Adguard. Why?! I wanted to use the dnscrypt-proxy server in AdGuard Upstream DNS servers list.

Also, setting the dnscrypt-proxy config through the UI is not sufficient for me. I want to used relays to anonymize my DNS queries. I was able to do that by adding these lines to the config:

routes = [
{ server_name='*' , via=['*'] },
]

skip_incompatible = true

and then restarting the server. However, the UI forces me to select up to 8 servers. I don't want to select any. The default config also doesn't specify any and picks the fastest one. When I commented the servers section in the config and restarted the service in shell, the service couldn't be started.

Since the ADG works based on DNS, it needs to take over the router's DNS data and process it, and next go to the corresponding network interface (VPN Client or WAN).
If enable the ADG, DNS service will be taken by the ADG.

Does the DNS Setting in the ADG is suitable with you required?
Here:

Thanks for your reply.
I know about that setting option but for me that's not the point of using dnscrypt-proxy. As I said earlier, I want to use the "relays" options to anonymize my DNS traffic. If I only wanted to encrypt my DNS traffic, I could also use DoH or DoT. Technically, it should be possible to use dnscrypt-proxy alongside adguard.

Anyway, I disabled adguard and started dnscrypt-proxy with the parameters I wanted. I use the blocked-names.txt file to block ads with dnscrypt-proxy.

P.S. I might bring up a dnscrypt-proxy docker container and then set it as the upstream DNS server in adguard.