Skip to content

Unable to listen on port 53 and run Blocky locally #1615

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

You must be logged in to vote

Hi, I have solved this issue. Please see the steps below

Disable and stop Systemd-Resolved for DNS resolution
$ sudo systemctl disable systemd-resolved
$ sudo systemctl stop systemd-resolved

Make Network Manager handle DNS
$ sudo nano /etc/NetworkManager/NetworkManager.conf
Add the following under the [main] section:

dns=default

$ sudo systemctl restart NetworkManager

Create a symlink to resolv.conf
$ sudo rm /etc/resolv.conf
$ sudo ln -s /run/NetworkManager/resolv.conf /etc/resolv.conf

Restart Blocky
$ ./blocky --config config.yml

Ensuring Blocky is used as DNS nameserver by all applications.
$ sudo nano /etc/NetworkManager/conf.d/dns-settings.conf

[global-dns-domain-*]
servers=127.0.0.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ChitranshuV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants