If you use Cloudflare’s DNS, make sure that systemd-resolved is disabled. : linux
I used to be benchmarking DNS servers with dig and I appreciated how Cloudflare carried out, so I switched my community to it, once I did this, area answer began to fail, maximum websites took a number of seconds to load, or did not load in any respect. After banging my head within the wall for some time I discovered the offender, for some explanation why systemd-resolved does not paintings with Cloudflare’s DNS (works tremendous with Google DNS), once I ended and disabled the provider, area answer got to work correctly.
In my case, I used to be the person who enabled systemd-resolved on Arch Linux, however it comes enabled by means of default in Ubuntu, I am not sure about different distros.
If you are having identical problems, prevent and disable the provider.
sudo systemctl prevent systemd-resolved sudo systemctl disable systemd-resolved