Unable to ping domain but can ping server

1

I setup a Virtual Server on Hetzner after using this tutorial. Everything was fine, no errors.

I setup ISP Config, added a domain example.com; vhost file is ok checked; DNS is declared.

But I have ping on server, no ping or DNS lookup on domain. I do not what to do :

ping http://78.47.156.188/ ok ; 
ping domain noting 

Claudiu Gamulescu

Posted 2015-09-11T00:49:19.153

Reputation: 11

1I edited your question for clarity and posted what I believe to be an answer, but I am still unclear what this question is about. Can you please clarify if possible? – JakeGould – 2015-09-11T00:58:21.040

Answers

2

You are attempting to ping:

ping http://78.47.156.188/

Using ping is strictly an ICMP networking task; the http:// is not useful here. It makes ping believe you are attempting to ping the full hostname of http://78.47.156.188/ when the http:// and trailing / are just URL protocol parts. You should be pinging like this:

ping 78.47.156.188

And for the hostname it should be like this:

ping example.com

JakeGould

Posted 2015-09-11T00:49:19.153

Reputation: 38 217

But also, the domain name isn't a hostname unless it is defined to be one.  example.com might or might not map to the address of a host.  If the user has defined www.example.com, then he should ping that.  For example, ping www.ibm.com succeeds; ping ibm.com gets a different address and gets no response. – Scott – 2015-09-11T02:54:34.117

@Scott Fair enough but if you look at the linked tutorial the original poster used as well as the text of their question—as well as the apparent language barrier issue—it’s still unclear what exactly the issue/goal of this exercise might be. – JakeGould – 2015-09-11T03:01:27.840