Setting up the PiHole device as a DNS server & DHCP server still won’t make all traffic flow through it, you need it to be a gateway for all traffic that isn’t destined for an internal subnet.
To do that, you’ll need to set up your device as a router, with the necessary entries in iproute2 and iptables in order to keep lock out external connections without conntracks. You might be able to route to a turnkey container of some kind.
Did the citizens of that country take the loan? No
Did they benefit at all from the loan? No
Did the world bank make any effort to ensure the above were answered ‘yes’? No
When you make a leveraged loan are you supposed to be guaranteed that the it was risk free? No
If leveraged loans could be made risk-free ‘breal your legs’ style the way the world bank does to countries, banks would be offering loans to every punter who wanted to bet on the dogs.