# Network table - seeing clients as hostname of router rather than devices

**URL:** https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597
**Category:** Beta 5.0
**Created:** [May 5, 2020, 1:04pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597 "2020-05-05T13:04:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 5, 2020, 1:04pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/1 "2020-05-05T13:04:19Z")

</div>

**Pi-hole Version** vDev (release/v5.0, v4.3.5-500-gdf13b9c) **Web Interface Version** vDev (release/v5.0, v4.3.2-498-ge620211) **FTL Version** vDev (release/v5.0, vDev-a4b26c3)

**Problem with Beta 5.0:**  
When looking at my network table - lots of the device that rely on the router for their wifi get identified as such (i.e. broadband.bt.com rather than say home-pc). this occurs with a few other devices as well that pass through the home router in some way (ethernet). I've tried flushing the network table through the gui and manually clearing the network table via the sudo command but the results are still the same.

Its almost like the system sees its coming from the router as the last hop so identifies the traffic via that hostname rather than delving deeper.

Not a big thing - but would be nice to be able to view the network table to reliably see what addresses are assign to what on my network.

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/9/9c1afed20c4b3d05d1293141342db2b2ec04e10c.png)

**Debug Token:**  
[https://tricorder.pi-hole.net/5tctepubnj](https://tricorder.pi-hole.net/5tctepubnj)

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [May 5, 2020, 1:52pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/2 "2020-05-05T13:52:06Z")

</div>

> [@Sam\_UK](#):
>
> Not a big thing - but would be nice to be able to view the network table to reliably see what addresses are assign to what on my network.

You can correct this by mapping the IP's to the host names you want to see in either the /etc/hosts file on the Pi, or using the Local DNS records feature in the web GUI. If you assign the host names you want, then the network page will display them.

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/5/5b3ce528a7f1cb435e4617bb8cb5eb0586a4d583.jpeg)

---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 5, 2020, 1:54pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/3 "2020-05-05T13:54:10Z")

</div>

I'll give that a go - but I think this is an issue that was introduced when I bumped up to the v5 beta. Anychance its something that's on the radar to resolve?

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [May 5, 2020, 2:03pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/4 "2020-05-05T14:03:12Z")

</div>

What did you see before for the host names for this subset of clients?

---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 5, 2020, 2:18pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/5 "2020-05-05T14:18:52Z")

</div>

The separate hostname of the devices rather than a multitude being seen as broadband.bt.com

---

<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: [May 5, 2020, 4:04pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/7 "2020-05-05T16:04:44Z")

</div>

I'm pretty sure this is caused by the addition of [support for IPv6 addresses](https://github.com/pi-hole/FTL/pull/591) on the network table. The network table uses the most recent (= the last used) IP address a client used to make a query to your Pi-hole when determining the host name. This might have been a GUA address such as `2a00:23c5:...` for the three devices you pointed out.

I assume you're using conditional forwarding and/or specified your routers as upstream destination and it may be users your ISP's DNS server itself for IPv6 name resolution resulting in `broadband.bt.com` as reply.

How could we improve on this? We shouldn't prefer IPv4 addresses.  
Should we allow multiple host names per device such as we allow multiple IP addresses per device?

I'm open for ideas.

---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 5, 2020, 4:56pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/9 "2020-05-05T16:56:54Z")

</div>

No conditional forwarding setup as I'm using Pi-hole as my DHCP server. I see the dilemma though and I suppose there is no easy answer.

Top of my head ideas:-

- Allow multiple hostname per device but allow the ability to define a "preferred" hostname per device where there is multiple
- Implement some mechanism that identifies if multiple device are coming from the same "hostname" and this tags them to chose the next hostname on the list for them
- Ability to chose to enable/disable IPv6 on the network table. Or is the the same as enabling on the DHCP settings page?

---

<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: [May 5, 2020, 7:45pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/13 "2020-05-05T19:45:12Z")

</div>

> [@DL6ER](#):
>
> We shouldn't prefer IPv4 addresses.

I second that. Pihole should be agnostic to the IP version as we don't know which the user prefers.

> [@DL6ER](#):
>
> Should we allow multiple host names per device such as we allow multiple IP addresses per device?

I think this would be a first step, but what what immediately will follow is "multiple/wrong names on dashboard/stats".  
This could be addressed by

> [@Sam\_UK](#):
>
> the ability to define a "preferred" hostname per device where there is multiple

even when only valid as an alias for the device's IPs in the Web GUI (the order of /etc/hosts, custom.list, alias has to be discussed).

---

<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: [May 5, 2020, 7:48pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/14 "2020-05-05T19:48:40Z")

</div>

> [@Sam\_UK](#):
>
> Implement some mechanism that identifies if multiple device are coming from the same "hostname"

Even if it sounds strange, it might be on purpose that someone gives the same hostname to two different devices in the same network. I would not implement any automatism but rather give the user the choice (as you suggested).

> [@Sam\_UK](#):
>
> Ability to chose to enable/disable IPv6 on the network table. Or is the the same as enabling on the DHCP settings page?

I also wouldn't do that. The network overview is meant as a tool to detect devices on the network that doesn't use pihole. If a device uses IPv6 is a valuable information and I see no need to 'hide' it. If users don't want to see IPv6 on the table the can disable IPv6 in their network.

P.S. Did you

> [@DL6ER](#):
>
> specified your routers as upstream destination

for your pihole?

---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 6, 2020, 5:55pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/15 "2020-05-06T17:55:31Z")

</div>

Nope - as my Pi-hole acts as DHCP so I didn't think that would be required?

---

<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: [May 6, 2020, 6:00pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/16 "2020-05-06T18:00:51Z")

</div>

I was referring to upstream DNS (not DHCP). What did you put here:

 ![Bildschirmfoto zu 2020-05-06 19-59-45](https://discourse.pi-hole.net/uploads/default/original/2X/2/27ce385b6e938a2ef5d3bedf1bcf752b6cfa7dd9.png)

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [May 6, 2020, 6:11pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/17 "2020-05-06T18:11:03Z")

</div>

> [@Sam\_UK](#):
>
> but would be nice to be able to view the network table to reliably see what addresses are assign to what on my network.

Note this page was not designed to be a network management tool (and is not intended to be such a tool). It is just a quick overview of the clients on your network to show if they are or are not using Pi-hole for DNS. In your case, they are all using Pi-hole for DNS, and Pi-hole should be showing you the client activity for each of these clients by IP.

You can get a simple table of most of this information using the `ip neigh` command on the Pi.

---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [May 6, 2020, 7:05pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/18 "2020-05-06T19:05:53Z")

</div>

Ah - in that case no. I'm using Cloudflare and google. I suppose I could use the router as a secondary IPv4 source

---

<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: [May 6, 2020, 7:23pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/19 "2020-05-06T19:23:17Z")

</div>

> [@DL6ER](#):
>
> I assume you're using conditional forwarding and/or specified your routers as upstream destination and it may be users your ISP's DNS server itself for IPv6 name resolution resulting in `broadband.bt.com` as reply.

Strange... no conditional forwarding and not the router as pihole's upstream DNS. But might be related to IPv6 anyway..

---

<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: [May 7, 2020, 12:12pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/21 "2020-05-07T12:12:35Z")

</div>

> [@Sam\_UK](#):
>
> Ability to chose to enable/disable IPv6 on the network table.

Well, this sort of exists. Try

```plaintext
RESOLVE_IPV6=no

```

into `/etc/pihole/pihole-FTL.conf` (create if it does not exist) and restarting with `pihole restartdns`.

Pi-hole will now stop to resolve IPv6 addresses. It may take some minutes (up to an hour) until you see the update on the network table.

---

<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: [May 7, 2020, 12:13pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/22 "2020-05-07T12:13:22Z")

</div>



---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [May 7, 2020, 12:45pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/23 "2020-05-07T12:45:16Z")

</div>

Does `broadband.bt.com` show up in reverse lookups for those IP addresses at all?

```auto
dig -x 192.168.1.144 +short 

```

Is there a difference to lookups forced through Pi-hole or your router?

```auto
dig @192.168.1.252 -x 192.168.1.144 +short 

```

```auto
dig @192.168.1.254 -x 192.168.1.144 +short 

```

---

<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: [June 5, 2020, 1:09pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/24 "2020-06-05T13:09:09Z")

</div>

There wasn't much going on in here, nonetheless, I will give a quick update. Pi-hole v5.1 will bring the new config option `NAMES_FROM_NETDB` to address picking up borked IPv6 host names also for IPv4 devices. Furthermore, we're working on supporting multiple host names per device. As this is a more involved change, this is scheduled for v5.2, however.

See the PR for the rationale of the new config flag:

> <https://github.com/pi-hole/FTL/pull/784>
>
> \*\*By submitting this pull request, I confirm the following:\*\*
> 
> \- \[X\] I have re…ad and understood the \[contributors guide\](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).
> \- \[X\] I have checked that \[another pull request\](https://github.com/pi-hole/FTL/pulls) for this purpose does not exist.
> \- \[X\] I have considered, and confirmed that this submission will be valuable to others.
> \- \[X\] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
> \- \[X\] I give this submission freely, and claim no ownership to its content.
> 
> \*\*How familiar are you with the codebase?:\*\* 
> 
> \## 10
> 
> \---
> 
> This adds a new option \`NAMES\_FROM\_NETDB\` which allows to disable the try to obtain an addresses host name using the network table.
> 
> One use case it that there is a IPv6 client without a host names itself.
> However, using the network table we can find out that this client is the same device where we also kwon an IPv4 address together with a valid host names for. In this case, we use the host name associated to the other address as this is the same device. This behavior can now be disabled using \`NAMES\_FROM\_NETDB=false\`
> 
> This feature has been discussed on Discourse: https://discourse.pi-hole.net/t/incorrect-hostnames/33111

---

<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: [June 5, 2020, 1:09pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/25 "2020-06-05T13:09:11Z")

</div>



---

<div class="post-metadata">

### Author: ![Sam\_UK](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sam_uk/32/14691_2.png) [@Sam\_UK](https://discourse.pi-hole.net/u/Sam_UK)
#### Post date: [June 6, 2020, 5:47pm UTC](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597/26 "2020-06-06T17:47:16Z")

</div>

Excellent! will look forwarding to testing

[Next page](https://discourse.pi-hole.net/t/network-table-seeing-clients-as-hostname-of-router-rather-than-devices/31597.md?page=2)
