DHCP-EDIT(8)

πŸ’– DHCP-EDIT(8) β€” ok bestie, let's talk dhcp-edit πŸ’–

It's the manual page for dhcp-edit, and it's genuinely so useful. She adds new host entries to dhcpd.conf, she removes ones you don't want anymore, and then she restarts the DHCP daemon for you like the queen she is. πŸ‘‘


✨ NAME ✨

dhcp-edit β€” add or and remove entries to/from dhcpd.conf πŸŽ€


🌸 SYNOPSIS 🌸

dhcp-edit [OPTION] HOST MAC [IP]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the whole vibe: dhcp-edit adds a brand new host entry to dhcpd.conf, or removes an entry that's already in there. That's the main character job. πŸ’…

And bestie, she doesn't just leave you hanging β€” she also restarts the DHCP daemon for you afterwards. Not me doing the extra work unpaid fr fr. 😭✨


πŸ’œ OPTIONS πŸ’œ

  • -d β€” Dry run. No files get changed. Just a lil rehearsal, no commitment, we love a preview era. 🫢
  • -h β€” Print help. Because sometimes we all need a lil guidance, and that's valid. 🌈
  • -n β€” Do not restart the DHCP daemon. She'll do the edit and then just… not touch the daemon. Respect. πŸ’€
  • -p PATTERN β€” Add the new entry before the line that matches PATTERN. Sneaking it in right where you want it. 🧚
  • -r HOST|MAC β€” Remove the entry that contains HOST or the MAC address. Bye bestie, it was iconic while it lasted. πŸ‘‹

πŸ“ EXAMPLES πŸ“

dhcp-edit host mac

Add an entry using the host and mac address with a fixed IP address. It's giving "the IP is already handled elsewhere" energy β€” you have to define the IP address in /etc/hosts or some similar service. πŸ‘‘

dhcp-edit host mac

dhcp-edit host mac ip

Add an entry using the host and mac address with the numerical IP address. Straight to the point. No middleman. Slay. πŸ”₯

dhcp-edit host mac ip

dhcp-edit -r hostname|mac

Remove the line containing this hostname or mac address. Sayonara. πŸ¦‹

dhcp-edit -r hostname|mac

This program is Copyright (C) 2010-2015 by Thomas Lange <lange@cs.uni-koeln.de> πŸ’–


ngl the whole thing was written up in the DHCP-EDIT(8) era and this version is dated 2026-08-26, so like… yeah. That's the tea. 🍡✨ Stay slay, keep your dhcpd.conf immaculate, and remember: dry run first, bestie, always. πŸ’…
πŸ“¦ where this page comes from