Message Board

Newbie/Basic Questions

Older Posts ]   [ Newer Posts ]
 unknown host
Author: J.McKay2   (13 Aug 13 1:31am)
Hi,

I am trying to use the api from a java app and am getting unknownhost exception when I try and resolve: my12charakey.98.228.142.83.dnsbl.httpbl.org (have removed my key in all that follows)

The reversed ip is arbitary but exists. Other lookups like say google.com work fine so I think my dns config is ok.

In java the code is very simple:

InetAddress ia = InetAddress.getByName("my12charakey.98.228.142.83.dnsbl.httpbl.org");

have also tried:

InetAddress ia = Inet4Address.getByName("my12charakey.98.228.142.83.dnsbl.httpbl.org");

Any thoughts on what might be the problem would be much appreciated !!

Many thanks.
John

The full error is:

Exception in thread "main" java.net.UnknownHostException: my12charakey.98.228.142.83.dnsbl.httpbl.org: System error
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getAllByName0(InetAddress.java:1211)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at java.net.InetAddress.getAllByName(InetAddress.java:1063)
at java.net.InetAddress.getByName(InetAddress.java:1013)



do not follow this link

Privacy Policy | Terms of Use | About Project Honey Pot | FAQ | Cloudflare Site Protection | Contact Us

Copyright © 2004–17, Unspam Technologies, Inc. All rights reserved.

contact | wiki | email