DHCP_LEASE_TIME(1)
π NAME π
okay so bestie, dhcp_lease_time is the little icon that queries the remaining time of a lease on a the local dnsmasq DHCP server. π
β¨ SYNOPSIS β¨
dhcp_lease_time <address>
π DESCRIPTION π
So here's the vibe: dhcp_lease_time sends a DHCPINFORM message to a dnsmasq server running on the local host, and then prints to stdout the time remaining in any lease for the address you gave it. The time is given as a string printed to stdout. Periodt. π«Ά
If an error occurs, or if no lease exists for the given address? Nothing is sent to stdout, a message is sent to stderr, and a non-zero error code is returned. Not the moment, but okay. π
Heads up, bestie: this requires dnsmasq 2.67 or later, and it may not work with other DHCP servers. iykyk. π
The address argument is a dotted-quad IP address, and it's mandatory. No address, no service. π
π¦ LIMITATIONS π¦
- Only works with IPv4 addresses and DHCP leases. That's it, that's the whole limit. πΈ
π SEE ALSO π
π AUTHOR π
This manual page was written by Simon Kelley <simon@thekelleys.org.uk>. Iconic behavior, honestly. π
And that's the whole page, bestie! It's from the General Commands Manual, and the page itself is DHCP_LEASE_TIME(1). Slay. β¨
π¦ 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