# Hostnames on green network not recognised

**URL:** <https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202>\
**Category:** Installing & Running IPFire\
**Created:** [7 May 2020 20:14 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202 "2020-05-07T20:14:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![quasimodo41](https://community.ipfire.org/user_avatar/community.ipfire.org/quasimodo41/32/11510_2.png) [@quasimodo41](https://community.ipfire.org/u/quasimodo41)\
**Post date:** [7 May 2020 20:14 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/1 "2020-05-07T20:14:35Z")

</div>

On my green network, I’ve allocated fixed IP leases (mapping from MAC address to IP address) for all the devices we use - about 20 of them, counting the wired & wireless addresses for laptops. I thought it would be nice to give each device a name, to save having to use the numeric IP address to define them. However since I edited the “Domain Name System” page to use TLS to the Google DNS server, to get round a problem with my ISP’s DNS server, any attempt to access a device using its hostname, either as the plain hostname or with the local domain [xviipylehill.net](http://xviipylehill.net) added, fails - I’ve tried both pinging from the command line and access using a web browser, and get an “unknown host” error. The hostname page lists all the IP addresses in our network, each with its hostname, the domain name [xviipylehill.net](http://xviipylehill.net) and the PTR box ticked.  
Can anyone suggest what I’m doing wrong please?  
Thanks  
Ian

---

<div class="post-metadata">

**Author:** ![anon42188109](https://community.ipfire.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@anon42188109](https://community.ipfire.org/u/anon42188109)\
**Post date:** [8 May 2020 00:14 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/2 "2020-05-08T00:14:18Z")

</div>

suggestion: stop/start DHCP and restart unbound

```
/etc/init.d/dhcp stop
sleep 2
/etc/init.d/dhcp start
sleep 2
/etc/init.d/unbound restart
```

---

<div class="post-metadata">

**Author:** ![rodneyp](https://community.ipfire.org/user_avatar/community.ipfire.org/rodneyp/32/16575_2.png) [@rodneyp](https://community.ipfire.org/u/rodneyp)\
**Post date:** [8 May 2020 02:00 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/3 "2020-05-08T02:00:58Z")

</div>

> [@quasimodo41](#):
>
> Can anyone suggest what I’m doing wrong please?

Try adding the IPFire green address to the list of DNS servers on one device, then see if it can find the other devices.

---

<div class="post-metadata">

**Author:** ![krasnal](https://community.ipfire.org/user_avatar/community.ipfire.org/krasnal/32/345_2.png) [@krasnal](https://community.ipfire.org/u/krasnal)\
**Post date:** [8 May 2020 05:11 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/4 "2020-05-08T05:11:54Z")

</div>

> [@quasimodo41](#):
>
> The hostname page lists all the IP addresses in our network, each with its hostname, the domain name [xviipylehill.net](http://xviipylehill.net) and the PTR box ticked.

Your problem might be similar to the one in this thread [Issues with HOSTS while upgrading from 139 to 144](https://community.ipfire.org/t/issues-with-hosts-while-upgrading-from-139-to-144/2133)

---

<div class="post-metadata">

**Author:** ![quasimodo41](https://community.ipfire.org/user_avatar/community.ipfire.org/quasimodo41/32/11510_2.png) [@quasimodo41](https://community.ipfire.org/u/quasimodo41)\
**Post date:** [8 May 2020 09:26 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/5 "2020-05-08T09:26:37Z")

</div>

Thanks very much, @anon42188109 - that worked 😃

---

<div class="post-metadata">

**Author:** ![hellfire](https://community.ipfire.org/user_avatar/community.ipfire.org/hellfire/32/8454_2.png) [@hellfire](https://community.ipfire.org/u/hellfire)\
**Post date:** [8 May 2020 19:33 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/6 "2020-05-08T19:33:54Z")

</div>

Really? It was me who started the above linked thread.

This means the issue is existing within other installations, too. Good to know, at least for the devs…

Thanks for your feedback! I will link this thread to my posting…

Michael

---

<div class="post-metadata">

**Author:** ![quasimodo41](https://community.ipfire.org/user_avatar/community.ipfire.org/quasimodo41/32/11510_2.png) [@quasimodo41](https://community.ipfire.org/u/quasimodo41)\
**Post date:** [8 May 2020 20:04 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/7 "2020-05-08T20:04:51Z")

</div>

Sorry, @hellfire, for any confusion. I thought I’d try the solution in @anon42188109’ reply first - I didn’t look into the thread which you referred to. When @anon42188109’ suggestion worked for me, I didn’t dig any further.

Thanks all for your suggestions.

Ian

---

<div class="post-metadata">

**Author:** ![rodneyp](https://community.ipfire.org/user_avatar/community.ipfire.org/rodneyp/32/16575_2.png) [@rodneyp](https://community.ipfire.org/u/rodneyp)\
**Post date:** [8 May 2020 22:32 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/8 "2020-05-08T22:32:12Z")

</div>

I’m not convinced that the two issues are the same.

@hellfire was using DHCP for clients on GREEN, whereas @quasimodo41 is having a problem when not using DHCP and notes that PTR boxes are ticked.

---

<div class="post-metadata">

**Author:** ![quasimodo41](https://community.ipfire.org/user_avatar/community.ipfire.org/quasimodo41/32/11510_2.png) [@quasimodo41](https://community.ipfire.org/u/quasimodo41)\
**Post date:** [9 May 2020 10:24 UTC](https://community.ipfire.org/t/hostnames-on-green-network-not-recognised/2202/9 "2020-05-09T10:24:39Z")

</div>

I’m afraid @rodneyp misunderstood my original post. The clients on my green network _do_ use the DHCP server on my IPFire box; I’ve defined a fixed lease on the IPFire DHCP Server page for each client’s MAC address, so that each client always has the same IP address.
