Skip to content

Unable to resolve: connection refused #1716

Answered by elXames
elXames asked this question in Q&A
Discussion options

You must be logged in to vote

I solved the problem with the help of a friend of mine. We just used apts dnscrypt-proxy package and made the following adjustments in a root shell:

systemctl enable systemd-resolved
mkdir /etc/systemd/resolved.conf.d
cat << EOF > /etc/systemd/resolved.conf.d/dns_servers.conf
[Resolve]
DNS=127.0.2.1
EOF
rm /etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
systemctl restart systemd-resolved

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@elXames
Comment options

Comment options

You must be logged in to vote
7 replies
@elXames
Comment options

@hnnnhl
Comment options

@elXames
Comment options

@hnnnhl
Comment options

@elXames
Comment options

Comment options

You must be logged in to vote
1 reply
@taicaile
Comment options

Answer selected by elXames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1715 on May 14, 2021 16:12.