DHCP_RELEASE(1)
β¨ dhcp_release β the NAME section, bestie β¨
dhcp_release β release a DHCP lease on a the local dnsmasq DHCP server. π
(Yes, "on a the". We don't fix the original's typos, we respect them. Iconic behaviour, honestly.)
π SYNOPSIS π
dhcp_release <interface> <address> <MAC address> <client_id>
π¦ DESCRIPTION π¦
Okay so picture this: there's a DHCP server running on your machine, and you need it to let go of a lease. That's the whole job. This little utility forces the DHCP server running on this machine to release a DHCP lease. No begging, no waiting, it just does it. π
What it's actually doing under the hood is sending a DHCPRELEASE message via the specified interface, which tells the local DHCP server to delete a particular lease. Boom. Gone. β¨
Now let's meet the arguments, one by one, because they all matter:
- interface β this is the interface where a DHCP request would be received if it was actually coming from the client, rather than being faked up right here. So like... you're cosplaying as the client, and this is the door they'd have walked through. πͺ
- address β a dotted-quad IP address, and it is mandatory. No address, no service. π
- MAC address β colon separated hex, also mandatory. It may be prefixed by an address-type byte followed by
-, like this:
10-11:22:33:44:55:66
But here's the tea: if that address-type byte is missing, it's assumed to be 1, which is the type for ethernet. And this whole encoding? It's the exact one used in dnsmasq lease files. So you already know it, iykyk. π§
- client_id β optional, bestie! And if it's
"*"then it's treated as being missing. Star means nothing. Main character energy but make it absent. β
π NOTES π
MUST be run as root β will fail otherwise. π₯
Not "should", not "preferably", MUST. If you're not root, it's giving nothing and it will fail. Periodt.
πΈ LIMITATIONS πΈ
Only usable on IPv4 DHCP leases. IPv6 girlies, this one's not for you, sorry babe. π
π SEE ALSO π
π AUTHOR π
This manual page was written by Simon Kelley <simon@thekelleys.org.uk>. π«Ά
And that's a wrap on the General Commands Manual page for DHCP_RELEASE β the header said DHCP_RELEASE(1) and so did the footer, so you know it's official. Go forth, release some leases, and remember: root or nothing. π
β¨π
π¦ where this page comes from
- alpine 3.22: dnsmasq-utils-doc 2.91-r1 Β· GPL-2.0-or-later
- alpine 3.23: dnsmasq-utils-doc 2.91-r1 Β· GPL-2.0-or-later
- alpine 3.24: dnsmasq-utils-doc 2.92_p2-r0 Β· GPL-2.0-or-later
- arch rolling: dnsmasq 2.93-1 Β· GPL-2.0-or-later
- centos-stream 10: dnsmasq-utils 2.90-8.el10 Β· GPL-2.0-only OR GPL-3.0-only
- centos-stream 9: dnsmasq-utils 2.85-22.el9 Β· GPLv2 or GPLv3
- debian bookworm: dnsmasq-utils 2.90-4~deb12u2 Β· GPL-2.0-only OR GPL-3.0-only
- debian trixie: dnsmasq-utils 2.91-1+deb13u1 Β· GPL-2.0-only OR GPL-3.0-only
- debian trixie: dnsmasq-utils 2.91-1+deb13u2 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 43: dnsmasq-utils 2.90-7.fc43 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 43: dnsmasq-utils 2.92rel2-2.fc43 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 44: dnsmasq-utils 2.92-4.fc44 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 44: dnsmasq-utils 2.92rel2-9.fc44 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: dnsmasq-utils 2.93-160000.1.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: dnsmasq-utils 2.93-160000.1.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: dnsmasq-utils 2.93-160000.1.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: dnsmasq-utils 2.93-160000.1.1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: dnsmasq-utils 2.86-1.1
- ubuntu jammy: dnsmasq-utils 2.90-0ubuntu0.22.04.4
- ubuntu jammy: dnsmasq-utils 2.91-0ubuntu0.22.04.2
- ubuntu noble: dnsmasq-utils 2.90-2build2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: dnsmasq-utils 2.90-2ubuntu0.4 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: dnsmasq-utils 2.91-0ubuntu0.24.04.2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: dnsmasq-utils 2.91-1build1
- ubuntu questing: dnsmasq-utils 2.91-1ubuntu0.2
- ubuntu resolute: dnsmasq-utils 2.92-1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: dnsmasq-utils 2.92-1ubuntu0.4 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: dnsmasq-utils 2.92-1ubuntu0.5 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: dnsmasq-utils 2.93-3ubuntu1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms