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