Skip to content

systemd-resolved/NetworkManager DNS queries not using specified DNS?

Hi,

I'm using NetworkManager for network interface configuration and started using systemd-resolved for DNS caching. I have an ISP which blocks access to certain domains via DNS, so I decided to use OpenNIC server.
I set up NetworkManager using main.dns=systemd-resolved (also tried with 'none') and checked 'Ignore automatically obtained DNS parameters' in the connection configuration and enabled systemd-resolved. Now resolvectl status shows only my specified DNS servers yet when I try to access a blocked domain it resolves to the IP which displays the blocked URL message.

Am I missing something here?

3 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
baftym

Author

1
posts
5
comments
0
media
View profile

4 comments

unknown author1 hidden

Deleted before we saved it.

2 points

This didn't change things for me. In the meantime, using wireshark I found out that the DNS query has the correct recipient but is probably being redirected by the ISP.

edit: For people looking for a uncensored DNS caching proxy, there is dnscrypt-proxy which works well for me.

1 points

I have no idea about the dns config, but what I do is I make the DHCP server advertise only the DNS servers I want. So I do not need to configure clients manually.

2 points

I use dnscrypt-proxy, have it's service start on boot, put this in resolve.conf:

domain mydomain.top

nameserver 127.0.0.1

nameserver ::1

options edns0 single-request-reopen

and made resolve.conf imutable

it's an ugly hack but it works

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.