# How to show readable hostnames when Conditional Forwarding supplies only gobbledygook

**URL:** <https://discourse.pi-hole.net/t/how-to-show-readable-hostnames-when-conditional-forwarding-supplies-only-gobbledygook/28668>\
**Category:** Help\
**Created:** [February 24, 2020, 11:27am UTC](https://discourse.pi-hole.net/t/how-to-show-readable-hostnames-when-conditional-forwarding-supplies-only-gobbledygook/28668 "2020-02-24T11:27:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [February 24, 2020, 2:20pm UTC](https://discourse.pi-hole.net/t/how-to-show-readable-hostnames-when-conditional-forwarding-supplies-only-gobbledygook/28668/5 "2020-02-24T14:20:43Z")

</div>

If you shy away from editing the `hosts` file, there may be another approach to assay, but it'll involve more manual editing, and you have to test for yourself to find out whether this will produce the names in your fashion, or whether _Conditional Forwarding_ still would take precedence (if enabled coexistingly).

You could try setting up a hostrecord with pihole-FTL for each client by adding a custom configuration file under `/etc/dnsmasq.d/`.

You can either do that completely manually from scratch, studying the [man page for dnsmasq](http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) , or have pihole assist you by executing

```auto
pihole -a hostrecord <hostname> 192.168.178.<x>

```

Of course, you'd have to replace the \<bracketed terms\> with your respectively applicable values. Implemented FR [Domain Redirect - #3 by DL6ER](https://discourse.pi-hole.net/t/domain-redirect/1826/3) has more details on this.

Pi-hole is adding hostrecords to `/etc/dnsmasq.d/01-pihole.conf` by default.  
You should be aware that updating pi-hole may overwrite your changes in `01-pihole.conf`.

That's why I'd suggest moving the hostrecord lines into a separate custom configuration file, e.g. `/etc/dnsmasq.d/20-local-hostnames.conf`. Once you are familiar with the pattern, you should also be able to edit that file directly, but don't forget to restart when finished. 😉

---

_[View the full topic](https://discourse.pi-hole.net/t/how-to-show-readable-hostnames-when-conditional-forwarding-supplies-only-gobbledygook/28668)._
