Long story short, my country is censoring some websites by forcing ISPs to configure their DNS servers to not return the correct answer when queried about specific domains.
For various reasons, I want to continue to use the DHCP provided DNS servers (which are the ISP's ones).
But when I try to resolve one of the aforementioned domains, I want to use specific servers that aren't subjected to that censorship.
I'm using stock kubuntu 20.10, so I'm using systemd-resolved, which from my understanding, is running a local DNS server which is forwarding request to the DHCP provided ones and/or the configured ones.
Is it possible to configure systemd-resolved system-wide to continue to honor the network-manager settings but forward the request to a specific server for specific domains?
If no, are there other solutions to solve my issue ?
Thanks
/etc/hosts
would be a start - depending on how many you need.dnsmasq
does this really well. I don't know how, and if,systemd-resolver
can do it too