# Ping hostnames (not ip's)

**URL:** <https://forum.openwrt.org/t/ping-hostnames-not-ips/93260>\
**Category:** Network and Wireless Configuration\
**Created:** [April 6, 2021, 1:11pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260 "2021-04-06T13:11:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:11pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/1 "2021-04-06T13:11:00Z")

</div>

Hello,

I'm running an openwrt like firmware on my Access Points but i cant figure out how to ping hostnames rather than ip adresses. (locally)  
If at all possible i'd prefer not to install anything. (definitely not something that could impact the functioning of the Access Points.  
Creating something like a dns server is not feasible for me.

is there any way as to ping hostnames rather than ip addresses?

with kind regards,  
xkoeckiiej

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:15pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/2 "2021-04-06T13:15:06Z")

</div>

is the "openmesh like firmware" openwrt ?

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:31pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/3 "2021-04-06T13:31:18Z")

</div>

ahh sorry, my mind is all over the place.  
Yes, it's an openwrt based firmware ^\_^.  
Looking to ping local machines which i cant access, via hostnames.

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:34pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/4 "2021-04-06T13:34:15Z")

</div>

> [@xkoeckiiej](#):
>
> Yes, it's an openwrt based firmware ^\_^.

based as in published by openwrt, or a 3rd party ?

.... and do the clients have static IPs, or DHCP ?

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:36pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/5 "2021-04-06T13:36:09Z")

</div>

i do think so, it states

firmware-ng: fw-ng-r6.4.15-522fbe8  
Powered by these open source projects:

[https://lede-project.org/](https://lede-project.org/)[https://tls.mbed.org/](https://tls.mbed.org/)  
[https://www.open-mesh.org](https://www.open-mesh.org)

IP's are via DHCP

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:40pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/6 "2021-04-06T13:40:18Z")

</div>

then it's not openwrt , and the version doesn't seem to match any LEDE releases.

LEDE is EOL since 3 years or so, when it merged back to/with openwrt.

if you don't have a local DNS, for the DHCP could update, you'll need to put entries in the hosts file(s).  
That won't work until you set static IPs to all the devices, either by reconfiguring them to use fixed IPs, or static leases from the DHCP.

> **[OpenWrt](https://en.wikipedia.org/wiki/OpenWrt)**
>
> OpenWrt (from open wireless router) is an open-source project for embedded operating systems based on Linux, primarily used on embedded devices to route network traffic. The main components are Linux, util-linux, musl, and BusyBox. All components have been optimized to be small enough to fit into the limited storage and memory available in home routers.
> OpenWrt is configured using a command-line interface (ash shell) or a web interface (LuCI). There are about 3500 optional software packages av...

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:42pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/7 "2021-04-06T13:42:20Z")

</div>

First of all, thanks for such clear helpfull fast replies!

If i were to be able to install ackages, would there be a possible package that would resolve it for me?

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:44pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/8 "2021-04-06T13:44:03Z")

</div>

> [@xkoeckiiej](#):
>
> If i were to be able to install ackages, would there be a possible package that would resolve it for me?

depends on which solution you'd like to have.

hosts file entries doesn't require any packages.  
DNS would, unless you already have one in place.

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:45pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/9 "2021-04-06T13:45:46Z")

</div>

I read something along the lines of mDNS.  
But i'm no sure if i can use it without having to configure other things (which preferrably not).  
Would mDNS be a solution?

-edit-  
Tried installing mdns-utils on a test device but it doesn't have enough space.

Or did you mean setup a different dns server?

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:52pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/10 "2021-04-06T13:52:24Z")

</div>

I haven't worked with mDNS, but it seems the clients have to support it, to be able to utilize it.  
if your clients do, then go for it.

> [@xkoeckiiej](#):
>
> Or did you mean setup a different dns server?

Most people/setups rely on DNSes on internet (google, opendns, cloudflare, etc) or provided by ISP.  
Those DNSes have no clue about what's going on in _your_ network, so you need an internal DNS, covering your own LAN.

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 1:54pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/11 "2021-04-06T13:54:25Z")

</div>

Thanks for the explanations!  
Is there any reason why windows pc's are able to resolve the devices but linux devices not?

like  
ping pc1 (works on windows)  
ping pc1 (doesnt work on linux)

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 6, 2021, 1:58pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/12 "2021-04-06T13:58:11Z")

</div>

> [@xkoeckiiej](#):
>
> Is there any reason why windows pc's are able to resolve the devices but linux devices not?

Depends on the device, and which protocols it's supporting, since there are several ways of doing the same thing.

but yes, mDNS works in Win10

---

<div class="post-metadata">

**Author:** ![vgaetera](https://forum.openwrt.org/user_avatar/forum.openwrt.org/vgaetera/32/113586_2.png) [@vgaetera](https://forum.openwrt.org/u/vgaetera)\
**Post date:** [April 6, 2021, 2:04pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/13 "2021-04-06T14:04:04Z")

</div>

> **[Avahi can't accessible from my mobile phone](https://ask.fedoraproject.org/t/avahi-cant-accessible-from-my-mobile-phone/12341/2?u=vgaetera)**
>
> Prerequisites: Your phone must support name resolution with mDNS. You should be connected to the same broadcast domain with the target host. Firewall on the router must allow intra-zone forwarding. An alternative method better suited for Fedora...

---

<div class="post-metadata">

**Author:** ![xkoeckiiej](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xkoeckiiej/32/58734_2.png) [@xkoeckiiej](https://forum.openwrt.org/u/xkoeckiiej)\
**Post date:** [April 6, 2021, 2:11pm UTC](https://forum.openwrt.org/t/ping-hostnames-not-ips/93260/14 "2021-04-06T14:11:27Z")

</div>

Thanks for the replies!  
Sadly mdns requires more space on the device than is available.  
I'm going to be looking into alternatives.  
Thanks for all the help!
