You need to make yours look similar but with 'heating-controller' replaced with 'intranet-pihole'.
B
Bob Latham
Oh right, that's interesting. The /etc/host file had much the same as yours except the network name was original and so when I changed the name using raspi-config last week, it failed to change the name there but it did change on the network.
Anyway just put it right and it has fixed the issue.
Thanks TNP & Chris.
Cheers,
Bob.
N
NY
Is it necessary to have entries in /etc/hosts for any computers that the Pi needs to talk to? On a bog-standard home network (TPlink router with DHCP enabled) a Pi can ping other Linux or Windows PCs by their hostname: the router handles the name-to-IP resolution. That doesn't work for Windows PCs - a Pi can ping a Windows computer, but a Windows PC cannot *reliably* ping a Pi by hostname. But that is solved by using appending ".local" to the Pi's hostname when accessing from Windows.
When I refer to pinging, I include all other things like Windows accessing a SAMBA shared drive on the Pi (*), or a browser on Windows accessing an HTTP server on the Pi. So I changed "http://pi:1234" to "http://pi.local:1234" in any browser bookmarks and it worked fine. Easier than having to use IP addresses in URLs.
(*) OK, that uses NetBIOS so the name query mechanism is different to a simple ping or a URL reference.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.