Thrown when an unexpected error occurs whilst performing a DNS lookup (eg parse error).
165166167168169170171172173174175176177178179180181182
mxRecord.setAddress (InetAddress.getByName (parsed[1])); records[i] = mxRecord; } else { throw new DNSException ("Error parsing MX record"); } } } } } catch (NamingException e) { throw new DNSException (e); } return records; }