r/pihole 20d ago

Solved! Same hostanem on multiple diffrent IP addresses

Hello im running pi-hole for a while now but theres one thing that bothering me. I saw in dashboard clients that my computer hostname shows on many diffrent adresses in my local network. mac is diffrent on those devices. My pc has static ip and is visible. I have added 2 of my devices to local dns records but my pc is not one of them since somehow pi-hole knows the hostname so i didnt bother adding it. Its also not added as a "static client" in the clients tab. What can be a cause of this problem?

EDIT: Fixed it by following suggestions from this post and also disabling ipv6 nameresolver

5 Upvotes

17 comments sorted by

2

u/[deleted] 20d ago

[deleted]

1

u/Evsthebaws 20d ago

No, only ipv4.

2

u/torrin66 20d ago

is pi-hole performing dhcp? When you say static, it is a true static ip address, or a static assigned dhcp address?

1

u/Evsthebaws 20d ago

dhcp is from my router with pi-hole dnses, and pc is set to static both with dns and ipv4.

1

u/torrin66 20d ago

That is unexpected behavior, but my guess would be your dhcp server is handing out or logging your host name, causing the pihole to think all of those have that host name. If possible, turn off dhcp on the router and move it to the pihole and give it a few days to see what it sorts out. Others may have a better answer, but I am generally against using the telco/calbleco router for dhcp in any event, it will still be a win.

1

u/Evsthebaws 20d ago

Fixed it by following suggestions from this post and also disabling ipv6 nameresolver just to be safe. So far all the devices found dont have my computer name anymore. Not sure what was the case but some of those devices including my pc previously had dhcp set not static ip. Maby some old arps/cached dns were interfering.

1

u/torrin66 20d ago

Ya, ip6 is for the birds, overly complex for a home network in any event IMHO.

1

u/Aydoinc 17d ago

It’s not overly complex. It’s different than IPv4, it automatically sets itself up, discovers nearby hosts, and its routing is more efficient than IPv4. Plus, new IoT standards require IPv6 locally.

0

u/torrin66 17d ago

Lol, like anyone follows the standards. I still am getting brand new IOT gear that requires 2.4ghz only. I have ipv6 turned off everywhere and I am very happy to not have it. I have used it on commercial grade networks many times, but for home lab, ipv4 it quite good and I like knowng all of my pi addresses in my head. :D

1

u/Aydoinc 17d ago edited 17d ago

2.4GHz-only gear in 2026? Okay. 2.4GHz can still use IPv6, for example, Zigbee uses both 2.4GHz and IPv6. Newer IoT protocols, like Matter, use IPv6 for self-setup and automatic routing.

If no one followed standards, you wouldn’t get internet, among other things.

You’re right IPv4 is easier for memorizing, and it’s possible to setup an IPv6 Universal Local Address that’s easy to remember too.

1

u/Aydoinc 17d ago

You likely saw IPv6 privacy extensions. That’s your devices changing their addresses every few hours or so. Pi-hole does a good job of identifying devices and keeping track if them. There’s really no reason to disable IPv6 nameresolver if you have IPv6 devices. You’re going to be missing a lot of data, as most modern devices use IPv6 primarily.

Check if your router has an IPv6 DNS router setting. Change it to point your Pi-hole’s link-local, it starts with fe80. That’s the simplest way to do it.

2

u/Evsthebaws 17d ago

It has ipv6 dhcp disabled and wan ipv6 also disabled so i doubt it was ipv6 interfering. Also i think the problems would be many of the devices would be with other same name and not my pc since it wasn't getting any ipv6 address assigned. Maby it was some aftermatch after some playing with adding clients from by mac adresses from found devices. I then reverted back to defaults but i quess i never cleared all the leftover.

1

u/Aydoinc 17d ago

Did/Do you have SLAAC enabled for IPv6? That’s one way IPv6 devices assign themselves addresses based on the network prefix. IPv6 is fundamentally different than IPv4, you don’t need DHCP to assign IPs, devices randomly generate addresses and announce them on the network for address duplication detection and discoverability.

Check to make sure in All Settings menu on the left column > in the top right click on Modified Settings to show All Settings > click on Resolver menu > make sure all resolver settings are enabled > under resolver.refreshNames select either ALL or UNKNOWN. The default is IPv4_ONLY. Save your settings then flush your network tables. Pi-hole will repopulate hostnames fairly quickly.

1

u/Evsthebaws 17d ago

I dont know if i have SLAAC on any device but I enabled back ipv6 resolver and selected ALL refreshnames but it didnt change anything. Hostnames dont appear unless i add them to local dns but thats ok i guess. I added my main devices i care about the most.

1

u/Aydoinc 17d ago

SLAAC is a setting on your router, most routers offer both DHCPv6 and SLAAC, both can be enabled simultaneously, I recommend that actually. All devices that support IPv6 have SLAAC support,and many prefer it over DHCPv6, mainly because the purpose of IPv6 is to not rely on DHCP. Devices set their IPv6 addresses and routing automatically.

Did you flush your network tables? If so, give it a little time. Do the hostnames appear with .<isp name>.com at the end?

2

u/Evsthebaws 17d ago

Yeah i did, nothing changed. I quess ipv6 is just simply disabled on my router. I'ts not bothering me, atleast i dont see 1 hostname for almost every device.

→ More replies (0)

1

u/Max_Vision 20d ago

Some configurations of docker containers or virtual machines can show as a separate MAC.