# Unbound on Raspberry Pi-hole install or VPS?

**URL:** <https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381>\
**Category:** Community Help\
**Created:** [July 7, 2022, 11:36am UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381 "2022-07-07T11:36:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 7, 2022, 11:36am UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/1 "2022-07-07T11:36:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [July 7, 2022, 12:14pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/2 "2022-07-07T12:14:57Z")

</div>

> [@pacpac2022](#):
>
> What would give the best performance with respect to speed and reliability,

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

---

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 7, 2022, 12:40pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/3 "2022-07-07T12:40:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [July 7, 2022, 1:02pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/4 "2022-07-07T13:02:39Z")

</div>

> [@pacpac2022](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 7, 2022, 1:15pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/5 "2022-07-07T13:15:14Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [July 7, 2022, 3:11pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/6 "2022-07-07T15:11:46Z")

</div>

> [@pacpac2022](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 7, 2022, 3:26pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/7 "2022-07-07T15:26:57Z")

</div>

Sounds good, thx

---

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 8, 2022, 10:25am UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/8 "2022-07-08T10:25:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [July 8, 2022, 1:20pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/9 "2022-07-08T13:20:12Z")

</div>

> [@pacpac2022](#):
>
> 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.

> **[DNS resolver - Pi-hole documentation](https://docs.pi-hole.net/ftldns/dns-resolver/#improve-detection-algorithm-for-determining-the-best-forward-destination)**

---

<div class="post-metadata">

**Author:** ![pacpac2022](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pacpac2022](https://discourse.pi-hole.net/u/pacpac2022)\
**Post date:** [July 8, 2022, 7:59pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/10 "2022-07-08T19:59:10Z")

</div>

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?

 ![Screenshot 2022-07-08 at 20.52.16](https://discourse.pi-hole.net/uploads/default/original/3X/5/c/5c14f2fafd32d6611c78a9a014d78032814ef59f.png)

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [July 8, 2022, 8:23pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/11 "2022-07-08T20:23:40Z")

</div>

> [@pacpac2022](#):
>
> Might be OK to run both as redudancy?

If that's what you want, no harm

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [July 29, 2022, 8:24pm UTC](https://discourse.pi-hole.net/t/unbound-on-raspberry-pi-hole-install-or-vps/56381/12 "2022-07-29T20:24:27Z")

</div>

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