As I understand it, the names after the =/name is the domain name for that network and the IP is the default gateway / DHCP server for that specific network. However, Pihole is still only showing IP's for those networks and not resolving the addresses. I'm also using a Ubiquiti USG 4 Pro for my DHCP server etc.
Thanks for the info. It's not quite what I want to do. In the gui you can setup Conditional forwarder which then does the lookup from your dhcp server. This works fine with a single subnet. I'm trying to get it to work across all subnets and what I have listed is the domainname for each subnet and the default gateway which is how I understand you'd do it through the custom config file? Does that make sense?
The config rule I suggested will do that for you. The conditional forwarding option uses that kind of rule in addition to a rule in the form of the ones you already have.