2021-08-03 07:33:18 +00:00
|
|
|
package f0;
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
import c.d.b.a.a;
|
|
|
|
import d0.t.k;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import java.net.InetAddress;
|
|
|
|
import java.net.UnknownHostException;
|
|
|
|
import java.util.List;
|
|
|
|
/* compiled from: Dns.kt */
|
|
|
|
public final class r implements s {
|
|
|
|
@Override // f0.s
|
|
|
|
public List<InetAddress> a(String str) {
|
|
|
|
m.checkParameterIsNotNull(str, "hostname");
|
2021-08-03 07:33:18 +00:00
|
|
|
try {
|
2021-11-02 06:38:17 +00:00
|
|
|
InetAddress[] allByName = InetAddress.getAllByName(str);
|
|
|
|
m.checkExpressionValueIsNotNull(allByName, "InetAddress.getAllByName(hostname)");
|
|
|
|
return k.toList(allByName);
|
|
|
|
} catch (NullPointerException e) {
|
2021-11-05 06:48:17 +00:00
|
|
|
UnknownHostException unknownHostException = new UnknownHostException(a.v("Broken system behaviour for dns lookup of ", str));
|
2021-11-02 06:38:17 +00:00
|
|
|
unknownHostException.initCause(e);
|
|
|
|
throw unknownHostException;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|