Previously I've used Unbound as a DNS resolver, but whenever I checked on dnsleaktest.com I got results for Google DNS only. Then moving to systemd-resolved fixed that issue. Now I'm using pdnsd, and that issue has showed up again.

I've blocked Google DNS server from /etc/hosts, added them to reject list in pdnsd.conf also blocked them from my router then how come they are still accessible?

  • 2
    "blocked Google DNS server from /etc/hosts" ... how that does that even work? O.o
    – muru
    Commented Dec 7, 2021 at 5:26
  • @muru by adding the entries with localhosts? Commented Dec 8, 2021 at 11:52
  • What entries would you add to do that?
    – muru
    Commented Dec 8, 2021 at 12:50

1 Answer 1


You could make a manual route like: accessible via (Or some other IP that is not a router)

That would mean, that your device would try to get to via, but this device either is non-existent or is not a router, so you cant get to this way.

On Linux you might achieve it with this command. Replace eth0 with proper device name, check with "ip a" command.

ip route add via dev eth0

I have no idea if this will make anything important inaccessible. Some examples for ip route command: https://www.cyberciti.biz/faq/howto-linux-configuring-default-route-with-ipcommand/

  • 3
    Blocking a /8 does not seem a particularly good idea. Commented Dec 7, 2021 at 14:10
  • Can there be a route to 1 address? like
    – pormulsys
    Commented Dec 9, 2021 at 7:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .