Bug 13973 - Knot Resolver: Parse DHCP Leases
Summary: Knot Resolver: Parse DHCP Leases
Status: MODIFIED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: - Unknown - - Unknown -
Assignee: Michael Tremer
QA Contact: Stefan Schantl
URL:
Keywords:
Depends on:
Blocks: KRESD
  Show dependency treegraph
 
Reported: 2026-05-15 09:39 UTC by Michael Tremer
Modified: 2026-05-21 19:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tremer 2026-05-15 09:39:42 UTC
We need to engineer a replacement to the Unbound DHCP Leases Bridge.

Since that has always been an utter ball ache, we will need to replace this with another solution which currently is unknown.
Comment 1 Michael Tremer 2026-05-16 14:39:38 UTC
I have pushed a couple of changes that are supposed to implement this now. Instead of parsing the lease file, the DHCP server will call a script to store all leases in a sqlite3 database which will be queried by kresd through a custom policy module:

> https://git.ipfire.org/?p=people/ms/ipfire-2.x.git;a=commitdiff;h=76449e1bb4b9053064f5115b00f1b018da77c9e2
> https://git.ipfire.org/?p=people/ms/ipfire-2.x.git;a=commitdiff;h=4e65f4205ef63b738f00b8218787e746c913da00
> https://git.ipfire.org/?p=people/ms/ipfire-2.x.git;a=commitdiff;h=23ed84bc473134f4101a58e47723b347b12ca6c5
> https://git.ipfire.org/?p=people/ms/ipfire-2.x.git;a=commitdiff;h=6b75593cbdce1bba18e7c667d699cf78cb154dc3

The module uses a simple print() statement for logging which will need to be replaced by proper logging as soon as it has been verified that this approach is workable.