Network : localhost client ?

Hello,

I installed Pi-Hole yesterday. I'm a relative begineer. Today I checked all client connected to the network. The first one is "Localhost" after PCs and iPhone / iPad. Do you know why there a localhost client ?

Thank you

Because the device pihole is running on (e.g. a raspberry pi) is using pihole itself for DNS resolution.

Localhost is the name mapped to the Pi on which Pi-hole is installed. Any DNS traffic from the Pi, including Pi-hole, will show as localhost.

 cat /etc/hosts

127.0.0.1	localhost
::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

Typo, @jfb probably means "IP address on which Pi-hole is installed":

pi@noads:~ $ ip -4 -br address show lo
lo               UNKNOWN        127.0.0.1/8

pi@noads:~ $ dig +short chaos txt version.bind @127.0.0.1
"dnsmasq-pi-hole-2.80"

pi@noads:~ $ dig +short chaos txt version.bind @localhost
"dnsmasq-pi-hole-2.80"

I don't. The loopback address is independent of the outward facing IP, and this is where localhost is attached.

You mean localhost is mapped in the hosts file to IP 127.0.0.1 that resides on the loopback interface named lo where pihole-FTL is also listening right ?

EDIT: I understand now ... the other way around being a client named localhost (query coming from loaclhost IP 127.0.0.1) :smiley:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.