a reinstall of java itself might not be a bad idea.
"How could it be DNS settings if the name is resolved and the connection made in the first place? "
I don’t know the tech specs on that but there were some other answers before where this worked. I used it once myself too with complete success.