# Display real name instead of 'localhost'?

**URL:** <https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950>\
**Category:** General\
**Created:** [September 17, 2018, 1:40pm UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950 "2018-09-17T13:40:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jockesve](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jockesve/32/59_2.png) [@jockesve](https://discourse.pi-hole.net/u/jockesve)\
**Post date:** [September 17, 2018, 1:40pm UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/1 "2018-09-17T13:40:50Z")

</div>

Sorry if this is covered already but I couldn't find solution...

Anyway:  
Is there a way to display the hostname of my PiHole instead of 'localhost' on client stats page?  
Tried modifying hosts without any change.  
Or even better (IMHO) hostname with highlighted or bold letters to clearly show what it is.

 ![Capture](https://discourse.pi-hole.net/uploads/default/original/2X/f/f3c560221a010277d2d0c93854b63e64e7134657.jpeg)

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [September 17, 2018, 10:41pm UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/2 "2018-09-17T22:41:49Z")

</div>

You need to edit **/etc/hosts** and add `127.0.0.1 theNameYouWant`

A system reboot is required for the settings to be reflected in the `/admin/` interface.

---

<div class="post-metadata">

**Author:** ![jockesve](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jockesve/32/59_2.png) [@jockesve](https://discourse.pi-hole.net/u/jockesve)\
**Post date:** [September 18, 2018, 5:02am UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/3 "2018-09-18T05:02:13Z")

</div>

Ohh, it was that easy! 😊 My bad!  
Thanks!!

It could still be an idea to mark the 'localhost' (real name) with bold, another colour or something else so it differs from "normal clients" if You see what I mean.

Edit:  
I.e. like this

> - **pihole (localhost)**

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [September 18, 2018, 5:04pm UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/4 "2018-09-18T17:04:52Z")

</div>

Why do you want to differentiate localhost from the other clients?

---

<div class="post-metadata">

**Author:** ![jockesve](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jockesve/32/59_2.png) [@jockesve](https://discourse.pi-hole.net/u/jockesve)\
**Post date:** [September 19, 2018, 5:13am UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/5 "2018-09-19T05:13:29Z")

</div>

Just to easier visually differ it from other 'clients' as I see my Pi-Hole as a 'server' (part of infrastructure services) and shouldn't normally have that much outgoing traffic except for updates.

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [September 20, 2018, 2:35am UTC](https://discourse.pi-hole.net/t/display-real-name-instead-of-localhost/12950/6 "2018-09-20T02:35:21Z")

</div>

You can also use the `IGNORE_LOCALHOST` FTL config option if you want: [Configuration - Pi-hole documentation](https://docs.pi-hole.net/ftldns/configfile/#ignore_localhost)
