0 LIKES LikeUnLike
I can do an nslookup of cia.gov or google.com or whatever and I can browse the web with no trouble. However, when I attempt to look up these same sites with java.net.InetAddress.getAllByName I get an UnknownHost exception. I am not sure how to diagnose this. Where do I start?#nslookup cia.govServer: 205.152.144.23Address: 205.152.144.23#53Non-authoritative answer:Name: cia.govAddress: 198.81.129.100try { InetAddress [] inetAddresses = InetAddress.getAllByName("cia.gov");} catch (UnknownHostException e1) { e1.printStackTrace(); System.exit(0);}java.net.UnknownHostException: cia.gov at java.net.Inet6AddressImpl.lookupAllHostA... Method) at java.net.InetAddress$1.lookupAllHostAddr... at java.net.InetAddress.getAddressFromNameS... at java.net.InetAddress.getAllByName0(InetA... at java.net.InetAddress.getAllByName(InetAd... at java.net.InetAddress.getAllByName(InetAd...
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.