# Feedback for "Allow defining clients by their MAC address, host name and networking interface"

**URL:** <https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324>\
**Category:** General\
**Tags:** v5-0\
**Created:** [May 13, 2020, 8:24pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324 "2020-05-13T20:24:36Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![ampfinger](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ampfinger/32/29115_2.png) [@ampfinger](https://discourse.pi-hole.net/u/ampfinger)\
**Post date:** [July 17, 2020, 1:32pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/151 "2020-07-17T13:32:18Z")

</div>

Thanks for the feedback and hard work, we will wait for it 😄

---

<div class="post-metadata">

**Author:** ![ubenmackin](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@ubenmackin](https://discourse.pi-hole.net/u/ubenmackin)\
**Post date:** [July 18, 2020, 10:03pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/152 "2020-07-18T22:03:27Z")

</div>

Currently I am on:

```auto
pi@pihole:~ $ pihole -v
  Pi-hole version is development v5.0-134-g60f0ab51 (Latest: v5.1.1)
  AdminLTE version is new/mac_clients v5.0-403-ga901489a (Latest: v5.1)
  FTL version is new/mac_clients vDev-661dad9 (Latest: v5.1)

```

Am I understanding that now the best way to keep up with this version to switch over to the dev branch? Is that by doing:

`pihole checkout dev`

or do I need to do each component:

`pihole checkout core dev`  
`pihole checkout web dev`  
`pihole checkout ftl dev`

Or should I stick on this branch for now? I know there was DB changes with this, so don't want to corrupt things by switching out of this branch prematurely.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 19, 2020, 7:28am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/153 "2020-07-19T07:28:41Z")

</div>

> [@ubenmackin](#):
>
> Am I understanding that now the best way to keep up with this version to switch over to the dev branch?

It has not been merged now. I'm sure, **DL6ER** will post a message here when he merged the branches into development.

> [@ubenmackin](#):
>
> Or should I stick on this branch for now?

For now you should stay on this branch if you don't want to loose the ability to define clients by MAC, hostname, etc. and want to avoid to delete your long-term-database.

> [@ubenmackin](#):
>
> `pihole checkout web dev`  
> `pihole checkout ftl dev`

This two will be sufficient.

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [July 19, 2020, 8:29pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/154 "2020-07-19T20:29:24Z")

</div>

Current status is: Waiting for [FTL#845](https://github.com/pi-hole/FTL/pull/845) to get merged.

Then I will update all the features branches floating around. And I will also mark them as ready-to-be-merged into `development`.

Depending on the team's review abilities this may happen within minutes to hours to days. I hope that we can release FTL v5.1.1 tomorrow which also means you will get all the updated branches tomorrow.

I _could_ already do it now, however, there are two drawbacks:

1. I have double amount of work (I don't care too much about this, but see no. 2)
2. There would be a needless extra merge commit. It is just cleaner to wait for `release/v5.1.1` to be done in order to reduce the number of merge commits floating around. They are just noise. However,. given the complexity of the currently discussed branches, a `rebase` would result in even (much) more work than an ordinary `merge` which is why I'll prefer the latter.

I hope this makes my motivation clearer. It's not about me simply not wanting to do it.

---

<div class="post-metadata">

**Author:** ![ubenmackin](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@ubenmackin](https://discourse.pi-hole.net/u/ubenmackin)\
**Post date:** [July 19, 2020, 11:35pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/155 "2020-07-19T23:35:01Z")

</div>

> [@DL6ER](#):
>
> I hope this makes my motivation clearer. It's not about me simply not wanting to do it.

Sorry if my post came across in any way other than just seeking clarification. I totally understand that in the world of software development, things take time. I also get that cleaner is better, and would wish extra work on no one.

I do want to take a moment to thank you (and the rest of the team) on putting this all together. Specifically this feature is a really great one, that is helping to fine tune my setup for the different use cases in my household.

---

<div class="post-metadata">

**Author:** ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)\
**Post date:** [July 20, 2020, 5:55am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/156 "2020-07-20T05:55:14Z")

</div>

> [@ubenmackin](#):
>
> Sorry if my post came across in any way other than just seeking clarification.

I don't think your post comes across as demanding in any way. Re-reading his reply, I don't think he received it this way, either, so all good.

There seems to be a lot of work going on behind the scenes. They added another optimization yesterday and still have one more bugfix prepared and even an update for the dnsmasq core to the (today released!!) dnsmasq v2.82.

[https://github.com/pi-hole/FTL/pull/847](https://github.com/pi-hole/FTL/pull/847)  
[https://github.com/pi-hole/FTL/pull/848](https://github.com/pi-hole/FTL/pull/848)

How cool it this!

Also, [@DanSchaper commented](https://github.com/pi-hole/FTL/pull/848#issuecomment-660790040) that the update of dnsmasq will push FTL to v5.2 so v5.1.1 will maybe be skipped. We can stay tuned for more awesome Pi-hole things to come.

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [July 29, 2020, 10:49am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/157 "2020-07-29T10:49:19Z")

</div>

This feature branch (`new/mac_clients`) has been updated to the latest version of FTL (`release/v5.2`).

---

<div class="post-metadata">

**Author:** ![ampfinger](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ampfinger/32/29115_2.png) [@ampfinger](https://discourse.pi-hole.net/u/ampfinger)\
**Post date:** [July 29, 2020, 11:19am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/158 "2020-07-29T11:19:22Z")

</div>

@DL6ER Thank you very much! Will the AdminLTE also be updated so changes (for example Conditional Forwarding on DNS page) can be updated?

Thanks for your hard work 🙂

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [July 30, 2020, 7:06am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/159 "2020-07-30T07:06:44Z")

</div>

Yes, however, the AdminLTE branch is still awaiting two more PRs to be reviewed + merged, first.

[https://github.com/pi-hole/AdminLTE/pull/1498](https://github.com/pi-hole/AdminLTE/pull/1498)

---

<div class="post-metadata">

**Author:** ![ampfinger](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ampfinger/32/29115_2.png) [@ampfinger](https://discourse.pi-hole.net/u/ampfinger)\
**Post date:** [July 30, 2020, 7:52am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/160 "2020-07-30T07:52:31Z")

</div>

Alright, thank you very much for your fast reply 🙂

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [July 30, 2020, 8:00pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/161 "2020-07-30T20:00:17Z")

</div>

PRs have been merged, so I just updated the web branch as well now. Please test if adding custom IPs still works, I had to resolve some merge conflicts and I did so with a "best efforts" approach. I'm limited to my mobile development system right now so I cannot really do much to test my changes. If adding custom IPs in the dropdown select menu still works (Groups -\> Clients page), then everything went well.

---

<div class="post-metadata">

**Author:** ![ampfinger](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ampfinger/32/29115_2.png) [@ampfinger](https://discourse.pi-hole.net/u/ampfinger)\
**Post date:** [July 31, 2020, 9:28am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/162 "2020-07-31T09:28:40Z")

</div>

Just tried it, seems to work! Thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![SomeWhereOutThere](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/somewhereoutthere/32/12255_2.png) [@SomeWhereOutThere](https://discourse.pi-hole.net/u/SomeWhereOutThere)\
**Post date:** [August 2, 2020, 2:19am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/163 "2020-08-02T02:19:28Z")

</div>

Thank you very much for pushing the new release to this. pihole is working exceedingly well now. From my experience testing release/5.2, it seems to fix alot of stuff.

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [August 9, 2020, 8:53am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/164 "2020-08-09T08:53:32Z")

</div>

One further addition is to ask the kernel immediately (through [Netlink](https://en.wikipedia.org/wiki/Netlink)) if it knows the MAC address of a new client _before_ doing the group lookups in the database. This should make recognizing clients by their MAC addresses finally pretty reliable.

Please test this some more, but I have the feeling that this feature has become ready for inclusion in the v5.3 release.

---

<div class="post-metadata">

**Author:** ![Robert\_D\_Marriott](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Robert\_D\_Marriott](https://discourse.pi-hole.net/u/Robert_D_Marriott)\
**Post date:** [August 10, 2020, 2:18am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/165 "2020-08-10T02:18:45Z")

</div>

This is a great addition!! Will it be possible for this MAC association with the client name to be used (or an option to be used) in the client tables and client activity graph vs. the IP address in the future. This makes it easier to identify the IPv6 addresses that need to be added manually, but it would be really slick if this fed the tables and graphs too.

---

<div class="post-metadata">

**Author:** ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)\
**Post date:** [August 10, 2020, 7:28am UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/166 "2020-08-10T07:28:21Z")

</div>

> [@Robert\_D\_Marriott](#):
>
> This makes it easier to identify the IPv6 addresses that need to be added manually

What do you mean? When using the MAC to identify clients, you do not need to add IPv6 clients manually. They will get identified by the MAC address.

> [@Robert\_D\_Marriott](#):
>
> it would be really slick if this fed the tables and graphs too.

You mean grouping the different IP addresses into (let's say) "virtual" clients? There was a discussion about this some time ago and everyone seems to have agreed that this may not be what you want, it may be too much hand holding. The MAC address is the same interface. Apparently, there are often multiple clients (each with its own address) on an interface, e.g., docker containers. They can now distinguished by their IP addresses. When grouping them together, this would not be the case any more.

Maybe an optional feature? In this case -\> Open a Feature Request and hope that many find it useful = vote for it. Either this or write the code yourself (and please submit it!) to get it 😉

---

<div class="post-metadata">

**Author:** ![Robert\_D\_Marriott](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Robert\_D\_Marriott](https://discourse.pi-hole.net/u/Robert_D_Marriott)\
**Post date:** [August 10, 2020, 12:09pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/167 "2020-08-10T12:09:22Z")

</div>

Nothing that complicated. I am referring to the host name being listed based on the MAC address in the dashboard client graphs and tables rather than the constantly updating IPv6 address that pulls the host name from the ISP, or should that already be happening with this change (in my case it is not). The network table under tools shows both host names (or 3 if I have also added a manual one as well).

---

<div class="post-metadata">

**Author:** ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)\
**Post date:** [August 10, 2020, 12:22pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/168 "2020-08-10T12:22:23Z")

</div>

Summarizing your request with less words 😉

> [@Robert\_D\_Marriott](#):
>
> host name being listed based on the MAC address

> [@Robert\_D\_Marriott](#):
>
> rather than

> [@Robert\_D\_Marriott](#):
>
> IPv6 address

> [@Robert\_D\_Marriott](#):
>
> from the ISP

Hmm, that's an interesting idea. Currently, Pi-hole seems to favor the host name pulled from the upstream server. Only if this doesn't lead to a result, go and ask the database. You request the inverse, right? First check the database and only if there is nothing here, go and ask the upstream.

I can see this being dangerous as there would be no way how the database host name could be updated in this case (at least no other way next to editing the database which may be dangerous for the unexperienced).

This request seems to be separate from the new feature described in here. If my interpretation is correct (@Robert_D_Marriott please let us know), then you are asking for a different priority of the name sources.

> [@Robert\_D\_Marriott](#):
>
> The network table under tools shows both host names (or 3 if I have also added a manual one as well).

How many IP addresses are listed for this client? The ony you want may currently be at position 1, however, this is arbitrary and when you change the sorting of the table, another one (I guess this will be the ISP provided you DONT want to see) will be at the top. How would you pick which one to show?

---

<div class="post-metadata">

**Author:** ![Robert\_D\_Marriott](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Robert\_D\_Marriott](https://discourse.pi-hole.net/u/Robert_D_Marriott)\
**Post date:** [August 10, 2020, 12:34pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/169 "2020-08-10T12:34:33Z")

</div>

Two thoughts based on your response. 1. There is an already a concatenated field of all the host names in the network table under tools. If there was a choice to select the concatenated host names field to show all like it is in the network table, that may not be a terrible option (but a challenge for space). 2. I have a few clients with north of 5 IPv6 addresses from the last couple of days but only one IPv4. Only one is technically current. In most cases, it is only 2 IPv6 and then the IPv4. I haven't tracked down yet why its updating quite so often, because that seems excessive.

---

<div class="post-metadata">

**Author:** ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)\
**Post date:** [August 10, 2020, 1:37pm UTC](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/170 "2020-08-10T13:37:50Z")

</div>

> [@Robert\_D\_Marriott](#):
>
> I haven't tracked down yet why its updating quite so often, because that seems excessive.

Suspected: Either your ISP is doing this (it shouldn't) or you are using the IPv6 privacy extension (you shouldn't (typically)).

> [@Robert\_D\_Marriott](#):
>
> There is an already a concatenated field of all the host names in the network table under tools. If there was a choice to select the concatenated host names field to show all like it is in the network table, that may not be a terrible option (but a challenge for space).

Looking into the data, this concatenated field is just how they present it. In the database, each host name is stored under an IP address. And there is an IP address -\> MAC address link. Hence, host names are only weakly correlated to MAC addresses.

Let's see what they come up with. It may not look like one, but I find this a very challenging issue because FTL precomputes all the statistics for the _individual_ clients so this seems to complicate things _tremendously_ when you allow them to appear grouped. Definitely something for another discussion.

[Previous page](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324.md?page=7)

[Next page](https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324.md?page=9)
