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
3
votes
3 answers

UnknownHostException java

My program runs perfectly for sometime time, but after that I get an error java.net.UnknownHostException: www.sears.com at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at…
3
votes
2 answers

java.net.UnknownHostException when attempting to connect to database

I am attempting to connect to an Oracle database through Java with the Oracle JDBC driver with the following code (obscuring the host, service, user, and password): import java.sql.*; public class Main { public Main () { try { …
Alex
  • 557
  • 2
  • 8
  • 15
3
votes
2 answers

What can be the best approach to handle java.net.UnknownHostException for AWS users?

My application sends message to Amazon Simple Notification Service (SNS) topic but sometime (6/10) I get java.net.UnknownHostException:sqs.ap-southeast-1.amazonaws.com. The reason of exception is described in the amazon web services discussion…
2
votes
2 answers

Unresolved Host Exception in Android Emulator

I'm trying to call a servlet deployed on App Engine by passing JSON parameters. Below is the code: public static String doPost(String url, String jsonData) throws ClientProtocolException, IOException { HttpClient httpclient = new…
vbjain
  • 547
  • 2
  • 7
  • 23
2
votes
1 answer

Jenkins on Ubuntu UnknownHostException when installing plugins

Im using a linux ubuntu 20.10 server (bare metal server on OVH) and have jenkins installed on it. I keep getting java.net.UnknownHostException: updates.jenkins.io or java.net.UnknownHostException: get.jenkins.io when trying to install plugins using…
CapitalS
  • 41
  • 1
  • 5
2
votes
0 answers

UnknownHostException in Spring Boot with Consul

I am using spring-boot-starter-parent version 2.2.2.RELEASE with spring-cloud.version Hoxton.SR1 to create 2 services : ordercreate(Supplier) and orderconsume(Consumer). In Consul, the 2 services are up as below I get the…
2
votes
2 answers

Retrofit request throwing UnknownHostException behind VPN

So I'm having an issue that looks that it came straight out from the Twilight Zone. Problem I have to hit a REST API endpoint from a backend, the thing is that in order to hit that endpoint I need to go through a VPN. Otherwise the host is not…
4gus71n
  • 3,717
  • 3
  • 39
  • 66
2
votes
0 answers

java.net.UnknownHostException for all api call

I have a java web application (spring) running inside a docker. After few days all the outgoing api calls start throwing UnknownHostException exception. Just Restarting the docker solves the issue but then this again reoccurs after sometime. Can…
2
votes
1 answer

Weather app cannot display temperature because of a UnknownHostException

I was following a tutorial to create a weather app using a Weather Library.When i tried to display the temperature of a certain place i got an error.I think there must have been a problem due to updation of the library.I am going to share the code,…
2
votes
1 answer

Mocking HttpClient requests with mockito

I have the following code that I wish to test using Junit and Mockito. Code to test: Header header = new BasicHeader(HttpHeaders.AUTHORIZATION,AUTH_PREAMBLE + token); List
headers = new ArrayList
(); headers.add(header); …
user_mda
  • 18,148
  • 27
  • 82
  • 145
2
votes
0 answers

Getting android.util.Log to show stacktrace of UnknownHostException

So, Android built in this "feature", that any exception which has an UnknownHostException in its cause stack will not have its stack trace logged when passed into Log.X methods... See for example the questions here or here. Or check the original…
fgysin
  • 11,329
  • 13
  • 61
  • 94
2
votes
2 answers

How to handle com.android.volley.NoConnectionError: java.net.UnknownHostException

I am using Volley for webcalls in my application and everything is working fine and smooth except one state in which somehow my device is not getting Network Connection but checking connection via code is returning true using below code. public…
2
votes
1 answer

Unknown host RMI java

I get an unknown host error when I try to start an RMI server here. The error is unknown host. Actually, I'm just a beginner in RMI and sockets programming in JAVA. Can you please provide me with some tutorials concerning my problem. My interface…
2
votes
1 answer

java.net.UnknownHostException: ..__MSBROWSE__ when using jcifs

I'm trying to copy a file from a local directory to a network share on a windows box. I'm using jcifs 1.3.17. I successfully get a connection to the destination, actually create the file there, get a "canWrite" status of "true", but when I try to…
scooter4j
  • 43
  • 2
  • 9
2
votes
1 answer

UnknownHostExceptionError in Spark Streaming

I want my code to read the json text file that is being generated per minute (it is the station feed data from the Citibike), and I tried to use Spark Streaming. But I keep getting the unknown host exception error. My code: String url =…
1
2
3
9 10