-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Clients IP vs MAC Address #2010
Comments
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Happy new year everyone! |
As mentioned in #2032 and #1889, recent / log-term log pages and the tables on the dashboard currently use the hostname-IP address mappings from Local Hosts / DNS Records, not those from Group Management / Clients, ... ... supplemented by information accumulated from the ARP table over time (this is all then stored in the Quick hack for the impatient: add desired mappings on the Local Hosts / DNS Records page. Optionally press the "Flush network table" button on the 'Settings' page. Maybe reboot afterwards. tl;dr: it’s complicated™.Background:As I seem to recall, the query database stored/stores records with the IP address of the host that made the query.
Comments:Making the change to use the names in “Group Management - Clients” for clarity could be nice, of course, as the dashboard and query log could then display something like “Darcy’s iPhone” instead of “darcy_iphone.local”. Complicating the status quo, the “Local IP” table can contain multiple entries with the same IP address, e.g.:
In this scenario, even if the interface chooses the display name in a deterministic way, that could be tough to communicate to the average user. A mass switch to only using Client Group Management ‘comments’ / ‘friendly names’ (regardless of whether linked to IP address or MAC address of the query) wouldn’t help those who don’t use that feature (and would be a breaking change for those who currently have things configured in a way that works for them). Possible goal stateNot sure what an ideal solution (for both users and devs!) would exactly be, but perhaps a ‘gravity’ type of lookup / substitution table could be generated / periodically updated (daily? upon request? every time a source is manually changed in
Optionally, that combined mapping table could be also be displayed in a read-only format (e.g. in the settings portion of UI, with a brief description of the priority order).
Caveat: my memory may be incorrect, and my knowledge in general is absolutely many months behind current development.
(see also PR #1931, and PR pi-hole/FTL#1255). |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
That sounds like a reasonable solution. I would add one more idea to the table: in case of a scenario in your screenshot, where the same IP address corresponds to many hostnames. If you look at my screenshots at the top of the thread, you can see that Group Managements already displays two lines with IP and hostname. Perhaps more lines could be shown with the remaining hostnames (maybe up to a limit?). Or the hostnames could be shown separated by a ";" on the same line. |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Any thought? |
Just to echo some thoughts in the linked thread:
Beyond that, there isn't really much more to discuss currently. @jgrisham summed it up nicely with:
|
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Versions
Platform
OS and version:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
Expected behavior
When adding clients, they should be described also by their IP address in the client list, they should be described also by their hostname/assigned commentary name in the top lists of long term data, and they should disappear from the drop-down menu of the client list
Actual behavior / bug
One can either select them from the drop down menu and they disappear from the available option but show only with their Mac Address. Alternatively, one can manually type their IP instead of selecting them, they will then be shown with their Mac Address AND their IP, but they won't disappear from the drop-down menu. They are always described by their IP address in the top lists
Steps to reproduce
Steps to reproduce the behavior:
Debug Token
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: