And finally I added
dnsmasq to the equation. As the eager readers already know I have Dnscrypt running. There is a small bug in that in Arch and Manjaro, so you need to add one line to
/usr/lib/systemd/system/dnscrypt-proxy.serviceAnd that line is...
EDIT:This bug is now fixed
It should be the last line in the Unit section. If you don't add this - you simply will be without internet. So it makes sense to let the network start first
Here is my
/usr/lib/systemd/system/dnscrypt-proxy.serviceCode: Select all
[Unit]
Description=DNSCrypt client proxy
Requires=dnscrypt-proxy.socket
After=network.target
[Install]
Also=dnscrypt-proxy.socket
WantedBy=multi-user.target
[Service]
Type=simple
NonBlocking=true
ExecStart=/usr/bin/dnscrypt-proxy \
-R dnscrypt.eu-dkSo once that is cleared up it is time to add Dnsmasq into the equation:
First install it!Then I edited /etc/dnsmasq.conf and basically uncommented and filled in three lines:
Code: Select all
no-resolv
server=127.0.0.1#40
listen-address=127.0.0.1The Arch wiki told me to - so monkey see and monkey do....(It configures Dnsmasq as a local DNS cache).
The port has been changed from the default 53 so we need to alter that in the socket with this command:
Code: Select all
sudo systemctl edit dnscrypt-proxy.socketThis opened an empty file on my Manjaro so I pasted this content into it:
Code: Select all
[Socket]
ListenStream=
ListenDatagram=
ListenStream=127.0.0.1:40
ListenDatagram=127.0.0.1:40 You dont understand? Do it anyway; after the monkey see and monkey do method

The Arch wiki is like Jesus you just do it because it told you so
Now we have to stop the dnscrypt-proxy.service Je... eh.. the Archwiki says:
Code: Select all
sudo systemctl stop dnscrypt-proxy.serviceand start dnscrypt-proxy.socket
Code: Select all
sudo systemctl start dnscrypt-proxy.socketAh that should be it then; time to surf on the internet:
...
and nothing
Maybe we should remember to start the dnsmasq.service too, even if Je... the Wiki didn't say so..
Code: Select all
sudo systemctl start dnsmasq.serviceThe internet better be there now
- And the miracle has happened
Now I have to check why dnsmasq is good for me...
