# More than 2 DNS servers?

**URL:** <https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270>\
**Category:** Duplicate\
**Created:** [November 26, 2021, 9:24am UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270 "2021-11-26T09:24:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NrthantsPete](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/nrthantspete/32/28300_2.png) [@NrthantsPete](https://discourse.pi-hole.net/u/NrthantsPete)\
**Post date:** [November 26, 2021, 9:24am UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/1 "2021-11-26T09:24:47Z")

</div>

Would it be possible to have an 'Add' button in the gui settings page for dns servers so you can add as many as you like?  
I find that different times of day different servers respond better - it would be good if i could list say 6 servers without using Unbound

Should be simple to implement? im sure theres a config file one could edit but be nice in the GUI for the regular user

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [November 26, 2021, 11:43am UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/2 "2021-11-26T11:43:48Z")

</div>

You can already add as many servers as you like to. Do you mean you want more than the four custom DNS server fields?

---

<div class="post-metadata">

**Author:** ![Genisis](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@Genisis](https://discourse.pi-hole.net/u/Genisis)\
**Post date:** [November 26, 2021, 3:24pm UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/3 "2021-11-26T15:24:21Z")

</div>

"....more than the four custom DNS server fields" Would be nice upgrade. UP vote on this idea.

---

<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:** [November 26, 2021, 4:33pm UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/4 "2021-11-26T16:33:27Z")

</div>

In the absence of this feature, you can edit file _ **/etc/pihole/setupVars.conf** _ and add as many DNS servers as you like. Then restart pihole-FTL.

Follow the existing format and add additional lines as needed.

```auto
PIHOLE_DNS_1=9.9.9.11
PIHOLE_DNS_2=149.112.112.11
...

```

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [November 26, 2021, 4:59pm UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/5 "2021-11-26T16:59:48Z")

</div>

Please vote an already existing feature requests

> [@Add more than two custom upstream DNS servers in GUI](https://discourse.pi-hole.net/t/add-more-than-two-custom-unstream-dns-servers-in-gui/17802):
>
> There is no GUI option to set this. Shouldn't be too difficult to add.

> [@Add ability to add more dns servers and ability to select all-servers dnsmasq option](https://discourse.pi-hole.net/t/add-ability-to-add-more-dns-servers-and-ability-to-select-all-servers-dnsmasq-option/25196):
>
> Hello all, Currently I have pi-hole querying 8 local stubbys that are listening on 8 separate local ports doing dns over tls. I then have the stubbys piped through 8 separate tors. I can easily accomplish adding all of the extra local nameservers(server= entries) to a separate dnsmasq.d file and it happily makes it's way and works well. But, I was thinking it would be nice to be able to have a simple "add another dns server" selection in pi-hole to be able to add as many as are desired instead …

---

<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:** [May 25, 2022, 5:00pm UTC](https://discourse.pi-hole.net/t/more-than-2-dns-servers/51270/6 "2022-05-25T17:00:45Z")

</div>

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