Pihole dhcp not working The router from the ISP does not cater for defining the DNS servers in the DHCP menu, so I thought to disable the router's DHCP and use the Piholes. conf Once you have your dhcp server enabled you can add additional commands by creating a Sep 2, 2019 · Sep 2 17:12:27 dnsmasq-dhcp[10666]: DHCP, IP range 192. sh; ProcessDHCPSettings (the last one all in one line) should have fixed it. DHCP is a broadcast technology and does not cross over in to other network segments. you do not need to disable DHCP for pihole to work, pihole only needs to be pointed to as the primary DNS server. For instance, Android tells me “DHCP failure”. Mar 24, 2021 · Ive used PiHole (DNS and DHCP) for a few years without issue with around 30 connected devices. Also, check your router to see if it's blocking the DHCP traffic. Im trying to connect an ESP8266 commercial controller. My connections still work, but Pihole seems to have no traffic coming May 9, 2017 · Using Your Existing Router For Network-wide Ad Blocking You might not need to use Pi-hole's DHCP server: In many home environments, your router also functions as your DHCP server. If you are frustrated after hours of research and trying many solutions but did not work, a reboot usually helps. 26. I've tried setting the DNS setting on my router to point to my Pi's IP address, to no avail. I Dec 6, 2019 · First of all, i may be wrong about describing technical terms below. Oct 24, 2020 · If I manually configure a static IP from each device, the device connects to pihole and works as expected. Jul 3, 2023 · Hello, suddenly I am facing a strange problem in my network. Good: Keeping DHCP reservations on Pihole makes it a lot easier to replace broken routers. If you are searching for pihole problems, add "pihole" as a keyword. On my network i have 6 devices using it. The warning of no IP address happens when there really isn't an IP address on the interface. option domain_name_servers, domain_name, domain_search, host_name option classless_static_routes # Most distributions have NTP support. Debug Token: This may be an odd suggestion, but I've found that the DHCP server not providing 2 DNS servers in the DHCP lease messes up some clients in my network. Jan 15, 2023 · For some reason the pihole lxc container is not able to obtain an IPv6 IP via dhcp. DHCP is active on my router. Details about my system: Router: Provides DHCP; Domain name: local. In the pi-hole settings > dhcp I can see the IP's of the Virtual Machines and their MAC address as physical machines connected to the network. So I copied the contents of the 04-pihole-static-dhcp. After updating (docker-compose pull && docker-compose up -d), I had the same issue. The raspberry pi has a static ip and has been added to the DHCP configuration. However the device does not connect to wifi and keeps retrying. All other devices on my network have major connectivity issues. Everything is kind of messed up on my Pi after a restart. 10 -- 192. See where the DHCP transactions are going, since they aren't going to Pi-Hole. Aug 24, 2021 · Over the years I've managed to automate pretty much every maintenaince function an eliminated all but one issue with my setup: Pihole. Actual Behaviour: This was working perfectly, but I had problems with one WiFi access Jul 6, 2021 · The issue I am facing: At a high level, I am unable to have my requests go through the DNS. I did Apr 8, 2021 · ~$ ls /etc/dnsmasq. log. list then went on to forward the domain . I do not believe this is a pihole or even DHCP server issue, to be more generic, I'd start with the devices. What steps can I take to ensure the router talks with Pi-hole and the DHCP server to assign IP's on the network? Apr 28, 2023 · With Pi-hole's DHCP server disabled and your router's DHCP server enabled, what is the output of the following statement run from your Pi-hole machine: sudo pihole-FTL dhcp-discover Nothing is using pihole for DHCP. d/ 01-pihole. conf; source /etc/. I restored my pi-hole backup and now every 24 hours all my devices lose DHCP lease. Its clearly a DNS or routing issue on the Pi Hole machine but I don't know how to fix it, nothing I have come across has helped. Major Good: Local device names. Just keywords and be specific, like "pihole not resolving DNS" instead of "why my pihole is not working". The dnsmasq log (/var/log/pihole. So with that out of the way, how did i got v6 working? First I enabled IPv6 at my ISP and my router. Jan 22, 2022 · Expected Behaviour: Raspbian GNU/Linux 10 (buster) Pi-hole v5. Feb 21, 2025 · Well, what a busy couple of days! We have finally released v6 – and we believe by-and-large that it has been a success! Of course, there will be a few bugs and issues that weren’t caught during testing, even with the extended beta release we were probably never going to catch everything – so we’re always keen to fix new issues as soon as they come up after a release. Thanks I tried this, and it still wouldn't work and I got ARP-cache injection failed: Operation not permitted in pihole. Not sure what's going on. Docker runs in a separate network by default called a docker bridge network, which makes DHCP want to serve addresses to that network and not your LAN network where you probably want it. In my case Pihole is handling DHCP and DNS requests. Pihole DHCP assigns an IP, correctly registers the device in the lease table. conf 02-pihole-dhcp. 0. Dhcp start work ,assign the ip address , show name of the device . I disabled DHCP on my router and enabled DHCP on the Pihole, but I don't get addresses. 4. I expect the Pi-hole DHCP to take over when I disable the DHCP server on the Virgin Hub, and the Pi-hole DNS to by used. With or without the copied DHCP configuration, it doesn't want to work. Sep 15, 2018 · pi@raspberrypi:~ $ sudo iptables --list Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) target prot opt source destination DOCKER-USER all -- anywhere anywhere DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all Jun 7, 2020 · Everything is working ok. log using sudo pihole logging off. 168. Same as others, running the ftl restart makes the new entries visible and functional in DHCP settings, query log, etc. However, when I deactivate the Routers DHCP and enable the pihole's DHCP, the client(s) do not get an IP 3 days ago · Expected Behaviour: After disabling DHCP from router all devices should be getting there IP from pi-hole Environment Debian GNU/Linux 12 (bookworm) Raspberry pi3 Actual Behaviour: I had to reinstall raspberry pi from v10 - v12. But if you have only one, just set the same IP address in both the primary and secondary. The only thing that seems to work is if I manually configure the DNS setting on each client Aug 11, 2019 · Will this disable the file log to /var/log/pihole. Tested in both situations with router DHCP disabled and also router DHCP enabled and separated IP ranges I've checked that dhcp ports are open in pihole VM: PORT STATE SERVICE 53/udp open domain 67/udp open|filtered dhcps 68/udp open|filtered dhcpc and also checked with dhcpdump that dhcp Feb 12, 2024 · Raspbian 11 is the version that uses dhcpcd5. 04 LTS (Headless) Rasp Pi 4B Running Pi Hole in a container. 12. Ultimately, it turned out that REPLY_ADDR in the pihole-FTL. 2; Pihole: v5 Apr 20, 2024 · This is reproducible - rebooting the working Deco immediately causes the stoppage (presumably when the IP address request is made), then reinstating the router DHCP server makes the Deco work normally again; Debug Token: Pi-Hole acting only as a DHCP server, not blocking ads, after regaining wifi by switching on the router's DHCP server. 1 FTL v5. So we have two options: (1) use the host network mode, or (2) run a DHCP relay (more on this later). pihole/advanced/Scripts/webpage. PiHole should be actively working as my DHCP server. Method 2. Method 3. Normally, you would just configure Docker to use a more appropriate network driver (see also Docker DHCP and Network Modes - Pi-hole documentation ). DHCP Server Defaults Changed. So I switch DHCP to my router May 3, 2024 · I have Pihole setup for being the DHCP server on my network. Nslookup showed it resolving to 0. Now, ideally you should have two Pi-holes with two IP addresses that you can set in the DHCP server. 1 Using Pi-hole for DHCP, because Virgin Hub DHCP will not let me change the DNS server. Win10/MacOS Monterey various Actual Behaviour: Internet connection will drop, PiHole will suddenly stop being accessible + stop acting as my DHCP server until I re-enable my routers DHCP server The pihole booted up, after adjusting the datetime on the Raspi also unbound was working. I don't know how I missed that. I used the official guide for pi-hole unbound, I just changed port number. By default, Docker isolates a container into a network segment of its own. But in 5 days ago · I have Pihole running directly on my Raspberry, it is using Tailscale and offers an exit node. New Command-Line Configuration Options For my issue, I was trying to have pihole/ the DHCP server work in bridge mode (-p 67:67/udp), the DHCP is still not working though I have to shutoff the pihole and turn dhcp back on the ISP router to get things working again (and to make this post). conf 03-pihole-custom. net Dec 31, 2019 · Adding a +1 request for this feature--static DHCP additions via the UI appear not to work, which is a confusing experience. conf to the new configuration. . 12 (aka Pi-hole) as primary and only DNS Feb 28, 2025 · Sorry. Now I want to setup the pihole as DHCP server, so I activate the DHCP server in the raspberry range from 172. The built-in DHCP server is disabled by default. pi-hole. Oct 5, 2021 · # Safe to enable by default because it requires the equivalent option set # on the server to actually work. Apr 5, 2025 · Install pihole; Set up DHCP server just like before - except its harder in v6 compared to v5 The DHCP server was working from core Version 6. log, to maximize SD card life? This is conflicting to my mind: If I execute this, regex will not work? Additionally, you can disable logging to the file /var/log/pihole. 5 . Namely "DHCPv6", "PPPoEv6", "Static IPv6" and Aug 15, 2024 · A DHCP server can only answer DHCP requests of clients within the same network segment. Then devices on my network using DHCP should request an IP address and that IP address would be provided by the DHCP server on my pihole. However, no ads are blocked whatsoever. I have a Fritz!Box with the DHCP server disabled. In this case, you can often set Pi-hole to be the DNS server for your network clients in the router's DHCP (or LAN) settings page, which allows all of your network clients to block ads simply by connecting to the I run pihole in a docker container. The vendor suggests that there is something amiss with the DHCP dialogue. Bad: Won't work unless router allows DHCP to be disabled. This was set thought wifi. 254, and I setup some static leases, after that I deactivated the router DHCP server but the pi does not hand ip. NTP synchronization is enabled by default but can be disabled in pihole. So in addition to that I also used --privileged flag, and now DHCP server works. During the period for my debug log there were many devices on my network trying to get a DHCP lease My router doesn't let me change its DHCP setting, so I enabled the one from pihole, disabled it on my router, and restarted my router but now I am facing very odd problems: 1 - My desktop, which is wired via ethernet, does not work fully. On my iMac I also run two VMware VM's. I've also tried disabling DHCP on my router, and enabling it on my Pi-Hole, to no avail. conf was set to 0. I Sep 3, 2018 · I first tried to use Teleporter to copy the DHCP configuration including static IPs but it only copied the configuration, not the static IPs. Behaviour At some points (in the meantime daily, it used to be less) pihole does not handle requests properly. Alternatively, I'd strongly recommend testing the Pi-Hole first by manually changing the DNS-server in the settings of your phone or tablet before setting the home router to distribute the Pi-hole DNS through the DHCP. Router DHCP is turned off. 92 KB So this is making me think that the DHCP server is not working at all Feb 20, 2023 · Host mode networking does not work on Docker Desktop for Windows. 04. option ntp_servers # Respect Apr 20, 2019 · The video is very confusing and not helpful, probably the reason it's not working. if you want to see hostnames in the pihole log you go static/reservation and add them by hand on the pihole or let pihole run DHCP for you and it will show hostnames in the log. This is basically a re-run of the installer script. Actual Behaviour: My Pihole does not appear to even be seeing DHCP requests. I've set up my desktop manually per the instructions in that guide, and while the internet works, traffic is still not going through pihole. Another way to test is to use a different DHCP server (like your router) and try to use a reserved DHCP address for the device that are not accepting it to see if it's an issue of the DHCP server or the client. Thanks. I'll check with some other team members about this. Actual Behaviour: If I turn off my adblocker, the ads show up. May 25, 2021 · Running Pihole on Docker is pretty straightforward, but things start to get a bit complicated when it comes to enabling DHCP - using Pihole to serve DHCP requests. So DHCP can be run on any device you want but make it serves your pihole ip address as the DNS. I would also put a packet sniffer on one of the clients that is unable to get an IP address with Pi-Hole DHCP. My devices are not able to connect to my network. My Pi is on a static IP. I don't think you'll be able to use DHCP server for a Windows installation. Pihole seems to be working correctly because if I change my DNS settings in my devices, I see traffic coming through on the dashboard. Oct 16, 2019 · Repair pihole with pihole -r - and select repair. here is a version that seems to be working but i am not happy with it running on network_mode: host. Here are the steps I did : Install pihole via yunohost web interface; Set a static IP to my yunohost server; Set DNS server and enable DHCP on pihole ineterface The issue is when I try to use the pihole container as a DHCP server it's not working, no IP addresses are being issued to any of the clients on the network so all of the devices time out when trying to get a new IP. Jan 3, 2024 · I installed pihole via web interface and it simply does not work. Bad: The pihole GUI does not expose several options ( multiple vlans, PXE, static routes ) . conf. You almost certainly would not be asking if that matters to you. Nov 5, 2022 · The issue I am facing: Hi, I've been using pihole for years now, everything works fine. home; Forwards all DNS queries to Pihole; Environment: Pihole OS: Ubuntu 20. 13 Web Interface v5. services: #Pihole - Tracking and advertisement blocker pihole: container_name: pihole image: pihole/pihole:latest # For DHCP it is recommended to remove these ports and instead add: network_mode: "host" network_mode: host ports: #DNS Ports - "53:53/tcp" - "53:53/udp" #Default HTTP Port I have set the pihole as my dns server for my main Windows machine to test that it was working, according to the admin console it is. Let me explain the situation: I'm using Pi-Hole as a DNS/DHCP server for the last 2 years. 2 to 172. Pihole was working fine, but pi. 8. to connect to the internet with my pc i had to set its IP to static like this: image 388×439 9. 10. But in the last 2 days, the pihole DHCP server stopped working twice, which basically broke everything on my network. Setting a static IP in the pihole's DHCP settings for this pc does not work (pc does not pick up the IP), but setting a static IP from the pc itself works fine and I can access both the internet and the pihole DNS server that way. Actual Behaviour: When I connect a device to my network PiHole immediately gives warning stating: NSMASQ_WARN Warning in dnsmasq: no address range available for DHCP request via eth0. The loss of connections happens at the same time as the warnings: DHCP packet received on eth0 which has no address. It's 192. home upstream. 70. NTP Sync Changes. If you want, you can use a program like wireshark to see if there's any DHCP packets being sent out when DHCP is active on the Pi-hole. What Feb 20, 2025 · The new method involves setting upstream DNS in pihole. May 11, 2023 · One time i have install pihole without docker . But most of my devices on my network doesn't. docs. option rapid_commit # A list of options to request from the DHCP server. I then tested it issuing DHCP address by disconnecting my modem from a switch I have it plugged into and removing the static dns address for the pihole server from the main machine. 0 until 6. 1 Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running and that there's no entry for dhcp or bootp in /etc/inetd. log) might have some clues with DHCP turned on. Feb 6, 2024 · The issue I am facing: pihole stop working till i disable and re-able my router DHCP, it's the second day that i use pi-hole and it's the second time that around 10am paris/europe timezone that my pi-hole stop working, i can't ssh to my raspberry pi and i can't login in web interface too, while my ip is correct when i go in my router dashboard, it says active device with the static ip adress Sep 3, 2018 · I first tried to use Teleporter to copy the DHCP configuration including static IPs but it only copied the configuration, not the static IPs. Mar 17, 2021 · It appears pihole found the correct IP 192. There's nothing in the Pihole logs about responding to requests. I'm still confused and lost about all the happening. Jan 4, 2017 · sudo -s source /etc/pihole/setupVars. I've checked the doc, but No DHCP context has been configured for this Nov 11, 2019 · Expected Behaviour: DHCP working Actual Behaviour: DHCP not working, disabled DHCP from router already. Users who rely on Pi-hole’s DHCP functionality must manually enable it. 0 though, not an NXDomain. Reboot usually solves most of the problems. hole wouldn't resolve. This document details why Docker Pi-hole DHCP is different from normal Pi-hole and how to fix the problem. May 5, 2019 · Please follow the below template, it will help us to help you! Expected Behaviour: Hoping it would be blocking ads. 2; Pihole: v5 Feb 25, 2025 · The dhcp server on the pihole is not working. Oct 13, 2022 · Expected Behaviour: PiHole acting as my DHCP server on my network, as my router does not allow editing of DNS server. They have all 192. Dec 20, 2021 · Expected Behaviour: With DHCP disabled on my router and enabled on my pihole. 10 in custom. PiHole DHCP inside Proxmox LXC not working I have PiHole running fine inside an LXC as the main DNS for my network, but I'd like to use the DHCP function and it doesn't seem to work at all. Feb 25, 2025 · The dhcp server on the pihole is not working. Method 1. Windows runs the Docker setup on a hyper-v virtual machine with a separate network. In the IPv6 tab of the router, you'll find serval ways to get IPv6 connectivity. It repeatedly fails with: sudo dhclient -6 -v Internet Systems Consortium DHCP Client 4. 251, lease time 1d What kind of router do you use? We've seen routers like some Google devices that prevent any other DHCP servers from existing in the network by not forwarding DHCP requests to the other connected devices. Running it on Raspbian Stretch and Pi's wired directly to my router, I set up my router to use only the Pi as its DNS since it's the only entry for DNS. toml. The DHCP service and the DNS are done by the pi-hole with unbound installed on a Raspberry. If I disable my router's DHCP and enable Pihole's, literally nothing happens. Any help is greatly appreciated. With Docker’s default bridge network mode, we can’t use Pihole as a DHCP server. I can load some pages, and some won't. Nov 18, 2024 · The issue I am facing: My router's DHCP server is disabled, I have pointed my router's DNS address to PiHole's IP A static IP has been set for my PiHole PiHole has DHCP enabled and has IP range from 50 to 255 My device network successfully get new IP address with PiHole's DHCP range Only some requests from my IoT devices passes through PiHole. Ubuntu 24. In router ,i have 2 ssid Feb 28, 2022 · I've set up my pihole in a docker container, running in my ubuntu server. I remember Raspbian doing odd things with the WiFi interface and using power saving features to turn down the interface.
otra tggvrqz hwv eppmdj qkhy cfzfacq annojf vufa hkyzsotj xkhsdz