Migrating a version 5 conditional forwarding to version 6

I version 5 I have the following setup. What is the right syntax for this in version 6?

Per the documentation shown on the web GUI in the settings/DNS section:

Conditional forwarding

If not configured as your DHCP server, Pi-hole typically won't be able to determine the names of devices on your local network. As a result, tables such as Top Clients will only show IP addresses.

One solution for this is to configure Pi-hole to forward these requests to your DHCP server (most likely your router), but only for devices on your home network. To configure this we will need to know the IP address of your DHCP server and which addresses belong to your local network. Exemplary input is given below as placeholder in the text boxes (if empty).

If your local network spans 192.168.0.1 - 192.168.0.255, then you will have to input 192.168.0.0/24. If your local network is 192.168.47.1 - 192.168.47.255, it will be 192.168.47.0/24 and similar. If your network is larger, the CIDR has to be different, for instance a range of 10.8.0.1 - 10.8.255.255 results in 10.8.0.0/16, whereas an even wider network of 10.0.0.1 - 10.255.255.255 results in 10.0.0.0/8. Setting up IPv6 ranges is exactly similar to setting up IPv4 here and fully supported. Feel free to reach out to us on our Discourse forum in case you need any assistance setting up local host name resolution for your particular system.

You can also specify a local domain name (like fritz.box) to ensure queries to devices ending in your local domain name will not leave your network, however, this is optional. The local domain name must match the domain name specified in your DHCP server for this to work. You can likely find it within the DHCP settings.

Enabling Conditional Forwarding will also forward all hostnames (i.e., non-FQDNs) to the router when "Never forward non-FQDNs" is not enabled.

The following list contains all reverse servers you want to add. The expected format is one server per line in form of <enabled>,<ip-address>[/<prefix-len>],<server>[#<port>][,<domain>]. A valid config line could look like true,192.168.0.0/24,192.168.0.1,fritz.box

1 Like

I saw the help lines in the web GUI, but was not 100% on translating the old format to the expected syntax. In my case is this correct:

true,10.9.0.0/16,10.9.8.1,lan

I have the above line active but am finding that only some of the clients IP addresses are getting translated to their respective host names.
sdfsdfs

But:

The 1st pic shows 10.9.0.0/24 and not 10.9.0.0/16 so its only shows clients from 10.9.0.0.X

I tried it both ways, initially replicating the /16 that I used under version 5.

EDIT: here is the result using

true,10.9.0.0/16,10.9.8.1,lan

Ah, I see what happened, the forward was defined correctly. It was just that the router did not assign the IP of those devices so there was no record of the hostname/IP association.

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