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?
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- baftym
4 comments
Deleted before we saved it.
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.
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.
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