---
title: "W5500 ping command for hostname"
url: "https://maker.wiznet.io/forum/12578"
markdown_url: "https://maker.wiznet.io/forum/12578/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "ssukhdipmanku"
created: "2017-11-17T12:16:48+09:00"
last_activity: "2017-11-18T09:20:46+09:00"
language: "en"
views: 2240
replies: 5
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5500 ping command for hostname

## Question

Asked by ssukhdipmanku on 2017-11-17 in Ethernet Chips.

Ping command is working fine for Static IP and Dynamic IP by DHCP Client for W5500 stack running on microcontroller.

If Try to ping with hostname is giving error
Ping request could not find host wiznet Please check the name and try again.
e.g ping wiznet.

But Router shows that DHCP Client List is connected with its name showing in the list.

What should need to do for working of ping by hostname?

Effort to guide will be appreciated.
Thanks

## Replies

### Reply 1 by Eugeny, 2017-11-17

![](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/48.png) ssukhdipmanku:

> e.g ping wiznet.

My PC says the same for “ping wiznet”:
`Ping request could not find host wiznet. Please check the name and try again.`
and does it for simple reason - there’s no host with “wiznet” name in the internet and in my local network.

![](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/48.png) ssukhdipmanku:

> What should need to do for working of ping by hostname?

Logically you need to implement DNS query on your W5500 to be able resolving host names to IP addresses.

### Reply 2 by ssukhdipmanku, 2017-11-17

Are you saying, need to implement DNS server for ping

### Reply 3 by Eugeny, 2017-11-17 (in reply to reply 2)

![](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/48.png) ssukhdipmanku:

> Are you saying, need to implement DNS server for ping

No, I say that to be able to ping you need IP address, but to be able to get IP address from host name you need to make DNS query.

### Reply 4 by ssukhdipmanku, 2017-11-18

Note i am taking about PC side, where i am typing ping command. Then How could be this possible to do DNS query as PC is doing itself.

### Reply 5 by Eugeny, 2017-11-18

![](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/48.png) ssukhdipmanku:

> Note i am taking about PC side, where i am typing ping command.

Then your question is not related to the WIZnet but rather to administration of the operating system of the PC or of your network in overall. You can put the required name into local DNS if you have such, or into hosts file on the PC so that PC can associate host name to IP locally.

---

Source: https://maker.wiznet.io/forum/12578
