Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] List DHCP leases #1604

Closed
adamtal3 opened this issue Apr 21, 2020 · 5 comments
Closed

[Feature Request] List DHCP leases #1604

adamtal3 opened this issue Apr 21, 2020 · 5 comments

Comments

@adamtal3
Copy link

Problem Description

The main reason I installed AdGuard (previously Pi-Hole which wasn't working smoothly) is for a DHCP server (my router fails to handle my 50+ devices when it comes to DHCP and renewing leases). I'd like to be able to see the list of active leases (or even better, list of connected clients with host names).

Proposed Solution

I've tried looking at leases.db, stats.db and sessions.db and didn't see that AdGuard is keeping track on DHCP leases except for the list of static IPs. It would be great if I could follow the DHCP process in my network somehow.

Alternatives Considered

If there's a database file with the leases, adding a page that simply shows the contents of that database will suffice for seeing what goes on in my network.

Additional Information

The only thing possible is adding static leases. In Pi-Hole, above the static list table, there's the actual lease table (and with a click of a button a regular lease could be added as a static lease).
I'm not sure if it's possible to keep track on which clients are still alive (maybe by querying the last DNS call they made and if it was less than X seconds ago) but that will be great to know exactly who's on the network and for how long.

@adamtal3 adamtal3 changed the title List DHCP leases [Feature Request] List DHCP leases Apr 21, 2020
@ameshkov
Copy link
Member

Summoning @szolin here:)

@szolin
Copy link
Contributor

szolin commented Apr 23, 2020

I'd like to be able to see the list of active leases (or even better, list of connected clients with host names).

Settings -> DHCP Settings -> section "DHCP leases"
This is the list of currently active leases, with host names.

@adamtal3
Copy link
Author

@szolin - Hi, I'm using v0.101.0 and under Settings -> DHCP Settings this are the sections I can see:
"DHCP server (experimental!)"
"DHCP static leases"

Is the "DHCP leases" part of a future version?

If it matters, I'm using AdGuard using the hass.io adon.

@szolin
Copy link
Contributor

szolin commented Apr 23, 2020

You have to start DHCP server first.
Then you'll be able to see the current leases.

@adamtal3
Copy link
Author

@szolin - I just did that and it does show up. Now I'm very confused as I have no idea how 50 devices got IP addresses when the DHCP on the router was set to AdGuard's IP and I didn't click on "Enable DHCP Server" up until now.

Sorry for the confusion and thanks for the quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants