The hostname of the Raspberry Pi running the pihole service is pihole (192.168.1.2). If I ping pihole from a Windows 10 PC it should reply.
Ping request could not find host pihole. However, if I ping pi.hole it succeeds. Unlike "pihole", "pi.hole" is resolved correctly.
I read the following thread carefully and my configuration appears to be the same as in the thread except for the very last part where the host pihole command should return 192.168.1.2. In my case it returns 127.0.1.1
My results are as follows:
$ cat /etc/hostname pihole $ hostname; hostname -s; hostname -f pihole pihole pihole $ cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 pihole $ ping pihole 64 bytes from pihole (127.0.1.1): icmp_seq=1 ttl=64 time=0.120 ms $ cat /etc/resolv.conf # Generated by resolvconf nameserver 127.0.0.1 $ sudo grep localise-queries -R /etc/dnsmasq.d /etc/dnsmasq.d/01-pihole.conf:localise-queries $ cat /etc/pihole/local.list 192.168.1.2 pihole 192.168.1.2 pi.hole $ host pihole pihole has address 127.0.1.1
Based on what I read in the linked thread, "host pihole" should return 192.168.1.2, not 127.0.1.1.
Here are the results for nslookup on the Windows PC:
>nslookup pi.hole Server: pihole Address: 192.168.1.2 Name: pi.hole Address: 192.168.1.2 >nslookup pihole Server: pihole Address: 192.168.1.2 *** pihole can't find pihole: Non-existent domain
How do I fix this?
Other than that, the Pihole service itself works like a charm and, besides blocking unwanted ads, has helped me identify exceeding chatty devices on my network (and silence them, wherever possible).
Be advised that if you have any speakers employing technology from LinkPlay, they contact baidu.com and sina.com.cn every few seconds (the mobile apps designed to control these speakers behave in the same manner). The speaker's configuration offers no way to stop this behavior. I have blacklisted the two sites but now I normally leave the speaker off to prevent it from overwhelming Pihole's daily logs (and polluting the statistics).