Questions tagged [unknown-host]

An unknown host is an error message that generates when a destination computer or host server name cannot be resolved. The message indicates that the user's provided host server name does not exist or match any Domain Name System (DNS) records. The unknown host message is common when a user tries to connect to a remote host. The error occurs for a number of reasons, including underlying configuration, server unavailability or incorrect host name.

Unknown Host Definition - What does Unknown Host mean?

An unknown host is an error message that generates when a destination computer or host server name cannot be resolved. The message indicates that the user's provided host server name does not exist or match any Domain Name System (DNS) records.

The unknown host message is common when a user tries to connect to a remote host. The error occurs for a number of reasons, including underlying configuration, server unavailability or incorrect host name. Stop Ransomware Mid-Flight Techopedia explains Unknown Host

An unknown host message is generated when a user attempts to ping a host name without a configured DNS resolution. If the ping is unsuccessful, the user should verify that the ping was sent to the correct remote host address. If so, the user should verify DNS name resolution, configuration and Windows Internet Naming Service (WINS) availability.

Commands are often used to deduce the root cause of an issue. For example, the "nslookup" command tests host name resolution and verifies DNS server registration. This command usually follows testing a computer's Fully Qualified Domain Name (FQDN) host name resolution, where the computer's Internet Protocol (IP) address is located and verified.

Source Link: https://www.techopedia.com/definition/1882/unknown-host

142 questions
2
votes
1 answer

java.net.UnknownHostException: Unable to resolve host "www.google.com"

I'm trying to detect if there is actually an internet connection and websites are reachable. I have a broadcast receiver that runs the following method on receive: public boolean hasInternetNow() { Thread checkinternet = new Thread(new…
Diego
  • 4,011
  • 10
  • 50
  • 76
2
votes
1 answer

unknownhost exception occurs when using Java 1.6 where IPV4 and IPV6 are enabled

An unknownhost exception sometimes occurs when I call this webservice This is the method I used to fetch the info from Webservices: String response = null; URL url; HttpsURLConnection con = null; try { //…
Shakthi
  • 175
  • 2
  • 13
2
votes
1 answer

UnknownHostException in android : Only Sometimes

Please help me, I got unknownHostException on php web service only sometime. At the same time other web services running well on same server with same host name. When I have changed IP Address of my real device using a third party application,…
Rohit
  • 687
  • 5
  • 22
2
votes
1 answer

How to overcome Unknown Host Exception with no access to system32\drivers\etc\hosts

I tried to use the following connection URL oracle = new URL("http://www.oracle.com/"); URLConnection yc = oracle.openConnection(); yc.setConnectTimeout(100000); BufferedReader in = new BufferedReader(new InputStreamReader( …
Buras
  • 3,069
  • 28
  • 79
  • 126
2
votes
0 answers

com.jcraft.jsch.JSchException: UnknownHostKey on Java servlet

There are other similar questions to this, but I don't feel like it answers mine. From a Java servlet I need to be able to ssh to any server on my company's network and dynamically handle this unknown key exception and then issue a command to get…
craned
  • 2,991
  • 2
  • 34
  • 38
2
votes
1 answer

Stop hotlinking using htaccess and non-specific domain code

I need to write an anti-hotlink command for my .htaccess file but it can not be specific to any domain name in particular. Here's what I found on another sites so far but I'm not sure exactly why it doesn't work, can anyone spot the problem? # Stop…
Vince
  • 910
  • 2
  • 13
  • 29
2
votes
0 answers

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'dbname'

while trying to connect to mysql database by java i get the following error com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'dbname' i wrote the same code while the db was on local host and it worked but…
user05
  • 21
  • 1
  • 4
2
votes
1 answer

java.net.UnknownHostException: Unable to resolve host "google.com"

I am running my application on a Galaxy Tab (v1). I have added the permission. I am checking if a site is online with the following code: public boolean…
Allison
  • 2,213
  • 4
  • 32
  • 56
1
vote
1 answer

Groovy URL UnknownHostException on Windows

I'm trying to build a groovy script that connects to a website. The webaddress ends in a non-standard format .abc. I had this snippet of code working on a Linux box and now I am moving it over to a Windows box. The Windows box throws an…
skarp133
  • 13
  • 3
1
vote
0 answers

spawn UNKNOWN at ChildProcess.spawn

I got this error, now I don't know how to fix it. enter image description here I want to find a way to fix it
1
vote
0 answers

Docker openjdk11 alpine-jre getting unknown hosts exception in java

I was trying to dockerize my java application to get data from youtube and storing to local file. The app works on my local, but I am unable to get it to work in a docker container. The exception occurs when I try to connect to youtube.com via http.…
NiharGht
  • 151
  • 5
  • 10
1
vote
0 answers

Handling server unavailability with WebClient

I am using a Spring 5 WebClient to interact with a REST server. I understand how to handle the case of a 4xx or 5xx error returned by the server. What I don't understand is how to handle the case of a non-response, for example when the server is…
1
vote
1 answer

DNS problem: dig successful, ping fails (Docker container)

I am running a Java application inside a Docker container, which tries to scrape some content from the DHL tracking URL https://ecommerceportal.dhl.com/track/ This has been working fine, but a few days ago, it stopped working with an…
BrooklynFFM
  • 59
  • 1
  • 4
1
vote
1 answer

Jenkins unable to install plugin unknownhost

I have installed Oracle VM and created a centos 7 machine in which I have installed Docker successfully then I installed jenkins from docker image : jenkins/jenkins in that I am not able to install plugins, it is giving me below…
sachin pareek
  • 411
  • 7
  • 18
1
vote
1 answer

ElasticSearch Rest High Level Client gives UnknownHostException

I was trying to connect to my elasticsearch cluster using RestHighLevelClient but it seems to be not working for me. Following is the code snippet I used. import org.apache.http.Header; import org.apache.http.HttpHeaders; import…
Deepesh
  • 41
  • 1
  • 2
  • 9
1 2
3
9 10