Please follow the below template, it will help us to help you!
Running with unbound running on a Raspberry Pi 2 Model B Rev 1.1
I have a Fios Router whos set up to handle DHCP, and in the routers congif I have the DNS ip set to my pihole / unbound 192.168.1.210
Im trying to set up conditional forwarding in DNS /Advanced to resolve the host names Vs Ip addresses in the client column of recent queries
My routers IP range is 192.168.1.1 (Router) to 192.168.1.254 and I thought the
CIDR notation was 192.168.1.0/24
Entering 192.168.1.0/24 into the text field and saving gives me the error,
dns.revServers[0]: not a boolean ("192.168.1.0/24")
What am I doing wrong ?
The description states:
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
The configuration has to start with a boolean(true/false) which indicates if the conditional server is enabled.
You configuration would look like true,192.168.1.0/24,192.168.1.1,yourdomain.com
with yourdomain.com
being optional.
Ok, thank you!
Your answer will be marked as the solution,,
Unfortunately every entry now says the routers host name instead of 192.168.1.1,
I know the router inst asking for the DNS info on its own but something isnt passing through.
I thought the router would supply all of the clients via DHCP the IP of my unbound,
and the clients DNS query to the unbound port would log the host name in pihole...
Ugh,,,, I dont have enough knowledge to troubleshoot this.
I hoped I would see what client tried to contact what dns record ;(
What you're describing can happen if your clients (i.e. PCs, phones, etc.) are using the router (192.168.1.1) as their DNS server.
I'm making a couple of assumptions here, so bear with me. In your router settings for DNS, there is typically a section for WAN (Internet connection) DNS servers and LAN (internal network) DNS servers.
If you went to your WAN DNS settings and entered your Pihole address (and then perhaps your LAN DNS settings show the router IP as the DNS server), that would explain the behavior you're seeing.
You want the LAN DNS settings to reflect the Pihole IP address (only!), and you would typically set your WAN DNS to either be automatically provided by your ISP or manually set to a public DNS server of your choice. This may be Google (8.8.8.8), Quad9 (9.9.9.9), Cloudflare (1.1.1.1), or anything you care to use.
If, instead, you don't have the ability to set different WAN and LAN DNS servers, you may need to pursue another avenue. Give us some feedback here, and if you can't find it then providing your router make/model may help us help you.
If you make the above changes in your router setup to use Pihole for LAN DNS, you will need to disconnect and reconnect the client (PC, phone, etc.) so it will pick up the change in configuration.
Thank you, hopefully later today I will dig through the Fios router settings and see if there is anything I can do without blowing up my nextcloud server also in my lan.
I have pretty much gotten everything to work for the last 8 years trouble free by setting some lan ips as static through the router, I have 15-18 clients and I'm guessing 5 or 6 have static ips with port forwarding.
Now I'm adding in pihole and unbound so kinda skirmish about having the pihole assigning ips..
Kinda short on time right now and just wanted to chime in to keep your help alive;-) thank you!!
So, my router Verizon Fios-G1100 appears not to have DNS proxy or DNS relay in any settings I can find, so what your saying appears to be true and a dead end for me unless I disable the routers DHCP and have pihole manage DHCP.
That said, do you think a good plan of action would be,
First, back up the fios router config to my desktop (just in case!)
- manually map out all of the clients connected to my fios router (hostname / function / and lan ip),
- manually add to the pihole client list (by IP)
- Disable DHCP on the FIOS router
- Enable DHCP on the pihole
If this sounds like a plan, how would I manage port forwarding ? Im guessing still on the Fios Router ?
So you are getting a bit out of my depth here
. Most of what you say makes sense but as a user I can't really say with authority what to do next.
I can say that, while I'm not clear on your needs for port forwarding (which is a completely different concept from Conditional Forwarding, in case that's a question), that's not a function Pihole provides. So any port forwarding would need to be handled by your router.