This method is using systemd
's resolved module.
edit resolved.conf
file
sudo nano /etc/systemd/resolved.conf
and then add below text at the end of the file:
DNSOverTLS=yes
there you go, you may test open a blocked website immidiately, for example reddit.com or any blocked website