I use pihole as a dhcp server. But some devices don't have hostnames, see this picture:
Any chance to change the hostname by my own? Like replacing 'unknown' with 'iphone'. I already tried this with the
Static DHCP leases configuration section:
But if i take a quick look in my
query log, my device is still recognized in the
Client column with the ip address 192.168.178.27 and not
I am running
Docker Tag 2021.10.1 Pi-hole v5.6 · Update available! FTL v5.11 · Update available! Web Interface v5.8 · Update available!
Docker container runs with a macvlan network.
Try adding a DNS record:
EDIT: Ow I believe iphones have a particular setting which randomizes the network interface MAC address causing Pi-hole to have a hard time figuring out names bc the IP address changes all the time ... I believe.
Try search Discourse here!
So I waited some days: The mac address of my iphone didn't change (also, I've got a dhcp lease of 24 hours). This is not the problem, I guess. I changed the hostname in
Static DHCP leases configuration and this works. What would be the difference between using
Static DHCP leases configuration or
DNS Records in this specific case?
Are you sure?
pi@ph5b:~ $ ip n
10.0.0.193 dev eth0 lladdr 10:1c:0c:xx:xx:xx STALE
pi@ph5b:~ $ pihole-FTL /etc/pihole/macvendor.db "SELECT vendor FROM macvendor WHERE mac LIKE '10:1c:0c'"
pi@ph5b:~ $ pihole-FTL dhcp-discover
Scanning all your interfaces for DHCP servers
Timeout: 10 seconds
Server IP address: 10.0.0.2
pi@ph5b:~ $ dig +short @10.0.0.2 -x 10.0.0.193
Both wont work if the MAC changes all the time.
Try post output for the commands I posted above with your own IP's and MAC's?
Partialy redact the MAC addresses like I did above!
EDIT: Ow I forgot you run it in Docker.
docker exec <CONTAINER_NAME> before above commands on the Docker host eg:
sudo docker exec pihole1 ip n
dig doesnt run in the container, I have little experience with the Pi-hole Docker container.
You can run the
dig on the Docker host instead.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.