AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Can't create dhcp static lease for client id

Open joshqou opened this issue 2 years ago • 4 comments

Prerequisites

  • [X] I have checked the Wiki and Discussions and found no answer

  • [X] I have searched other issues and found no duplicates

  • [X] I want to request a feature or enhancement and not ask a question

Description

AGH only allows users to create static reservations by MAC address, for some devices this is not suitable. Support for DHCP client ids should be added

joshqou avatar Aug 29 '22 17:08 joshqou

ClientIDs exist only on the DNS level, not DHCP.

You can add the MAC addresses of the clients to the permanent client record as another ID, and that should automatically mark queries from those devices e.g. in the Query log.

ainar-g avatar Aug 29 '22 17:08 ainar-g

@ainar-g I'm not exactly sure where to point you but "Client IDs" do seem to exist. iOS, dhcpcd, and macOS allow you to set it, and the since discontinued Apple AirPort allowed you to assign reservations based on it.

From man dhcpcd.conf

     clientid string
             Send the clientid.  If the string is of the format 01:02:03 then it is encoded as hex.  For interfaces whose hard-
             ware address is longer than 8 bytes, or if the clientid is an empty string then dhcpcd sends a default clientid of
             the hardware family and the hardware address.

joshqou avatar Aug 29 '22 17:08 joshqou

Ah, I see, you mean the DHCP Client IDs, not AdGuard Home's own ClientIDs for DNS clients. In that case, yes, I think we could add this feature in the future.

ainar-g avatar Aug 30 '22 11:08 ainar-g

This would be amazing, I'm looking forward into it.

setovi avatar Sep 12 '22 15:09 setovi