The problem is that your ISP is returning a fake page for a non-existent DNS domain. This (bad) practice is known as NXDOMAIN redirection.
JRE , 81.200.64.50 IP- www.fake.cao, , -.
, ( , , , , HTTP-) IP- IP- (, does-not-exist.invalid).
InetAddress ip = InetAddress.getByName("www.fake.cao");
InetAddress fake;
try {
fake = InetAddress.getByName("does-not-exist.invalid");
} catch (UnknownHostException e) {
return ip;
}
if (Arrays.equals(ip.getAddress(),fake.getAddress())) {
throw new UnknownHostException();
}
return ip;
, - , .