public Location getLocation(String str) { if (dnsService == 0) { InetAddress addr; try { addr = InetAddress.getByName(str); } catch (UnknownHostException e) { return null; }  return getLocation(addr); } else { String str2 = getDnsAttributes(str); return getLocationwithdnsservice(str2);  }
public Location getLocation(InetAddress addr) { return getLocation(bytesToLong(addr.getAddress()));
    public Location getLocation(String str) {        if (dnsService == 0) {            InetAddress addr;            try {                addr = InetAddress.getByName(str);            }            catch (UnknownHostException e) {                return null;            }            return getLocation(addr);        } else {            String str2 = getDnsAttributes(str); 	    return getLocationwithdnsservice(str2);	    // TODO if DNS is not available, go to local file as backup	}    }