Unbound on Raspberry Pi-hole install or VPS?

Hi, I have just installed Pi-Hole on my Raspberry PI (LAN), works very well. I have also set up Unbound on a VPS 2-3ms away (only allowing connections from my static IP). What would give the best performance with respect to speed and reliability, Unbound on the Pi-hole configuration or on the VPS? Pros and cons?

Thanks

Unbound on your local Pi, most likely. Clients can reach that instance more quickly.

Likely, I take it if I have Unbound on the PI my static IP will appear as my DNS server. Could that be a security risk?

Not in my opinion. All your other internet traffic is coming to/from that address. Any website or other place on the internet that you visit already knows your IP address.

OK, if I install Unbound on the PI and then use 127.0.0.1#5335 as DNS. In case I would like to change back to the VPS' IP, do I need to uninstall Unbound from the PI?

No. If you prefer not to uninstall it, unbound on the Pi will continue to run, waiting for DNS queries that won't arrive until you configure Pi-hole to use it again.

Sounds good, thx

Hi, any pros by installing Unbound on my Raspberry and configure 127.0.0.1#5335 as Custom 1 DNS and the VPS IP with Unbound as Custom 2 DNS?

Likely not. The algorithm in FTL for choosing an upstream DNS server is based on response speed, and your local instance will always respond more quickly. As a result, you will likely find that all (or almost all) of the DNS traffic is forwarded to your local instance.

Hi, see screenshot. This is after a couple of hours using both Unbound on the Raspberry and on the VPS. Looks like shared between the both with majority to the VPS. Might be OK to run both as redudancy?

If that's what you want, no harm

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.