# More than one "Conditional Forwarding" entry in the GUI

**URL:** <https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359>\
**Category:** Implemented\
**Created:** [August 3, 2018, 6:29am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359 "2018-08-03T06:29:37Z")\
**Posts on this page:** 20\
**Page:** 2

<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 13, 2020, 1:54pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/25 "2020-07-13T13:54:26Z")

</div>

> [@Coro](#):
>
> you can trust that all files in this directory, ending in `.conf` will be read.

Any file extension will be recognized, not just ".conf". Be careful that old files are not stored in the _ **/etc/dnsmasq.d** _ directory, because even with an extension like ".old" or ".bak", they will still be read by dnsmasq and used.

> [@Coro](#):
>
> There isn't much you can do to check

This command will check the configuration syntax:

`pihole-FTL dnsmasq-test`

---

<div class="post-metadata">

**Author:** ![hoelzlw](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/hoelzlw/32/20743_2.png) [@hoelzlw](https://discourse.pi-hole.net/u/hoelzlw)\
**Post date:** [July 31, 2020, 11:48am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/26 "2020-07-31T11:48:38Z")

</div>

I have another use case here, which could justify at least a second row of input fields for the two IP protocols.

> [@How to Configure Conditional Forwarding with IPv4 and IPv6 Simultaneously](https://discourse.pi-hole.net/t/how-to-configure-conditional-forwarding-with-ipv4-and-ipv6-simultaneously/36216):
>
> pihole 5.1.1, default installation, no special adjustments Summary The release notes of pihole 5.1 mention, that the conditional forwarding now works with IPv6. But the webGUI only allows to specify either IPv4 or IPv6. Expected Behaviour: Settings \> DNS \> Conditional Forwarding There should be a second row of input boxes for the IPv6 network. Actual Behaviour: Only one row of input boxes is shown. This way, we can either configure an IPv4 subnet or an IPv6 subnet, but apparently not both. …

---

<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:** [August 1, 2020, 9:55am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/27 "2020-08-01T09:55:53Z")

</div>

Ah, yes, sorry. I still have this in my ToDo list but too many real-life things have been pushing things back. I will move this higher on my ToDo list now...

---

<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:** [August 1, 2020, 9:55am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/28 "2020-08-01T09:55:58Z")

</div>



---

<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:** [August 2, 2020, 6:57pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/29 "2020-08-02T18:57:01Z")

</div>

Work-in-progress

[https://github.com/pi-hole/AdminLTE/pull/1542](https://github.com/pi-hole/AdminLTE/pull/1542)

 ![Screenshot at 2020-08-02 20-55-58](https://discourse.pi-hole.net/uploads/default/original/3X/f/3/f33b1a88ba096714c34f289875747c9d927efc76.png)

Note that this is not yet functional as the underlying settings saving still needs to be adjusted for this (needs a core change).

---

<div class="post-metadata">

**Author:** ![stevebow](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@stevebow](https://discourse.pi-hole.net/u/stevebow)\
**Post date:** [August 21, 2020, 12:19am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/30 "2020-08-21T00:19:12Z")

</div>

If you are updating the GUI, may I suggest this. The Conditional Forwarding help text notes "One solution for this is to configure Pi-hole to forward these requests to your DHCP server." Could you expand on "these requests" in the help text please? What are "these requests" in this context exactly. It may be obvious to some, but not so to those new to Pi-hole. 😕

---

<div class="post-metadata">

**Author:** ![Pete\_Evs](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/pete_evs/32/18611_2.png) [@Pete\_Evs](https://discourse.pi-hole.net/u/Pete_Evs)\
**Post date:** [September 15, 2020, 7:04pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/31 "2020-09-15T19:04:57Z")

</div>

would i be able to use conditional forwarding in the conf file to define 2 domain controllers?

i.e.  
server=mydomain.com/192.168.100.2  
server=mydomain.com/192.168.100.3

---

<div class="post-metadata">

**Author:** ![\_FailSafe](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/_failsafe/32/17478_2.png) [@\_FailSafe](https://discourse.pi-hole.net/u/_FailSafe)\
**Post date:** [September 19, 2020, 11:05am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/32 "2020-09-19T11:05:38Z")

</div>

Yes, it even says this in the dnsmasq man page:

> More than one **--server** flag is allowed, with repeated domain or ipaddr parts as required.

That said, your syntax is missing the leading forward slash after your equal signs. Yours should be:

```auto
server=/mydomain.com/192.168.100.2
server=/mydomain.com/192.168.100.3

```

---

<div class="post-metadata">

**Author:** ![eisengrau](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@eisengrau](https://discourse.pi-hole.net/u/eisengrau)\
**Post date:** [October 18, 2020, 2:53pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/33 "2020-10-18T14:53:05Z")

</div>

Yes, second this as well! Maybe as a compromise, so there would be no extra bloat on the Web GUI, there could be a "+" button which adds a new text entry field for a conditional forwarder. Or... show/hide normal/expert menu items in settings, that a lot of other products do it that way.

---

<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:** [May 14, 2021, 3:28pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/34 "2021-05-14T15:28:37Z")

</div>



---

<div class="post-metadata">

**Author:** ![fujitsubo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/fujitsubo/32/25812_2.png) [@fujitsubo](https://discourse.pi-hole.net/u/fujitsubo)\
**Post date:** [June 20, 2021, 11:47pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/35 "2021-06-20T23:47:36Z")

</div>

did this feature ever come to be ? cannot see anything in the GUI for it. if i have to make the conf i will.

---

<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:** [June 21, 2021, 7:18am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/36 "2021-06-21T07:18:31Z")

</div>

Not yet. DL6ER unassigned himself from this, so there is currently no one working on his I guess.

---

<div class="post-metadata">

**Author:** ![iorx](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@iorx](https://discourse.pi-hole.net/u/iorx)\
**Post date:** [April 2, 2022, 9:22am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/40 "2022-04-02T09:22:47Z")

</div>

Necropostning here, sorry for that.  
Any news on the subject?

So my question is if I'm doing it right without the GUI implementation?

```auto
root@ap-dietpi:/etc/dnsmasq.d# cat 99-myforwarders.conf

rev-server=172.30.30.0/24,172.30.30.21
server=/in.other01.com/172.30.30.21
server=/in.other01.com/172.30.30.22

rev-server=172.20.50.0/24,172.20.50.21
server=/in.other02.com/172.20.50.21

rev-server=172.20.40.0/24,172.20.40.12
server=/other03.com/172.20.40.12

rev-server=172.18.185.0/24,172.18.185.10
server=/other04.com/172.18.185.10

```

The option rev-server is that equivalent to .in-addr.arpa.?

```auto
rev-server=172.30.30.0/24,172.30.30.21

```

do the same as

```auto
server=/30.30.172.in-addr.arpa/172.30.30.21

```

Brgs,

---

<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:** [April 3, 2022, 4:52am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/41 "2022-04-03T04:52:51Z")

</div>

> **--`rev-server=<ip-address>/<prefix-len>[,<ipaddr>][#<port>][@<interface>][@<source-ip>[#<port>]]`**
> 
> This is functionally the same as **--server,** but provides some syntactic sugar to make specifying address-to-name queries easier. For example **--rev-server=1.2.3.0/24,192.168.0.1** is exactly equivalent to **--server=/3.2.1.in-addr.arpa/192.168.0.1**

> **[Man page of DNSMASQ](https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html)**

Your configuration looks valid.

* * *

> [@iorx](#):
>
> Any news on the subject?

Unfortunately not.

---

<div class="post-metadata">

**Author:** ![iorx](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@iorx](https://discourse.pi-hole.net/u/iorx)\
**Post date:** [April 3, 2022, 8:23am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/42 "2022-04-03T08:23:00Z")

</div>

Thank you very much!

Some google-fu would probably gotten me the answer, but I'm grateful for your answer and apologies for taking your time. Some time one stumble and ask before doing a search.

As you quoted from the man, it's was very clear that it was "same-same" 😃

GUI part: Not hard to setup through editing conf-files, but would be a "nice to have" if available through pi-hole settings.

Brgs,

---

<div class="post-metadata">

**Author:** ![Jacksobrups](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@Jacksobrups](https://discourse.pi-hole.net/u/Jacksobrups)\
**Post date:** [April 3, 2023, 1:57am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/43 "2023-04-03T01:57:25Z")

</div>

Has the GUI version of this ever gone anywhere? I’m about to try to set this up using config files, and I’m a bit concerned about breaking something…. Thank you to all who support the project!

---

<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:** [April 3, 2023, 4:57am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/44 "2023-04-03T04:57:18Z")

</div>

The GUI version has not been implemented in Pi-hole v5. The pull request was closed with

> This will be address in v6.0 where the settings page is re-implemented (almost) from scratch.

Currently, we are working on v6.

---

<div class="post-metadata">

**Author:** ![Harvs](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/harvs/32/11786_2.png) [@Harvs](https://discourse.pi-hole.net/u/Harvs)\
**Post date:** [August 17, 2023, 2:40pm UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/48 "2023-08-17T14:40:18Z")

</div>

in the meantime i created `99-my-forwarders.conf` in the same directory at `01-pihole.conf` with the following contents:

```conf
rev-server=100.64.0.0/10,100.100.100.100
server=/my-tailnet-name.ts.net/100.100.100.100

rev-server=192.168.1.0/24,192.168.1.1
server=/holidayhome/192.168.1.1

```

Then restarted my pihole

---

<div class="post-metadata">

**Author:** ![FrankQ76](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/frankq76/32/37393_2.png) [@FrankQ76](https://discourse.pi-hole.net/u/FrankQ76)\
**Post date:** [August 19, 2023, 3:57am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/49 "2023-08-19T03:57:11Z")

</div>

One idea could be to add different level of config through UI.  
BASIC ( as default )  
INTERMEDIATE  
EXPERT

Then an expert would be allow to add multiple conditional forward address through the UI 🙂

---

<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:** [August 19, 2023, 8:05am UTC](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359/50 "2023-08-19T08:05:47Z")

</div>

> [@FrankQ76](#):
>
> BASIC ( as default )  
> INTERMEDIATE  
> EXPERT

Such a selection is implemented in the current Pi-hole v6 development state.

[Previous page](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359.md?page=1)

[Next page](https://discourse.pi-hole.net/t/more-than-one-conditional-forwarding-entry-in-the-gui/11359.md?page=3)
