Remove DHCP Leases


#1

where is the dhcp lease file?


How do I use Pi-hole's built in DHCP server (and why would I want to)?
#2

Look in the “/etc/pihole” folder.


#3

thanks.

Can I modify it? Cancel some rows?


#4

You should change it via the web interface.


#5

How?

They are in the “Currently active DHCP leases”, how can you take them out?

(they are not in “Static DHCP leases configuration”)


#6

Currently active leases are the devices using the DHCP server. Do you want to blacklist a device from using your network?


#7

hi, i kind of have the same question. i have assigned about 28 items on my pi-hole using the built in DHCP and disabled the one on my router. that being said i want to removed the current device that is showing 192.168.1.2 but when i remove it and reassign it, it won’t take effect even after saving and rebooting the pi-hole. i see a bunch of devices in the “Currently active DHCP leases” how do i remove them yet how do i fix this.

DHCP

thank you


#8

Have you tried restarting the devices, or changing the lease time to something short?


#9

in my case those devices do not exist anymore


#10

Have you tried stopping dnsmasq, editing the lease file, and starting it back up? This seems to be the most common answer, or you could try this command: http://manpages.ubuntu.com/manpages/yakkety/man1/dhcp_release.1.html


#11

You need the following commands:

sudo systemctl stop dnsmasq
sudo nano /etc/pihole/dhcp.leases
sudo systemctl restart dnsmasq
systemctl status dnsmasq


How to delete clients with infinite remaining lease time in Pi-hole's DHCP server?