package uq;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;

/* loaded from: classes3.dex */
public interface q {

    /* renamed from: a, reason: collision with root package name */
    public static final a f37579a = a.f37581a;

    /* renamed from: b, reason: collision with root package name */
    public static final q f37580b = new a.C0903a();

    /* loaded from: classes3.dex */
    public static final class a {

        /* renamed from: a, reason: collision with root package name */
        static final /* synthetic */ a f37581a = new a();

        /* renamed from: uq.q$a$a, reason: collision with other inner class name */
        /* loaded from: classes3.dex */
        private static final class C0903a implements q {
            @Override // uq.q
            public List a(String hostname) {
                List J0;
                kotlin.jvm.internal.t.g(hostname, "hostname");
                try {
                    InetAddress[] allByName = InetAddress.getAllByName(hostname);
                    kotlin.jvm.internal.t.f(allByName, "getAllByName(hostname)");
                    J0 = sm.p.J0(allByName);
                    return J0;
                } catch (NullPointerException e10) {
                    UnknownHostException unknownHostException = new UnknownHostException("Broken system behaviour for dns lookup of " + hostname);
                    unknownHostException.initCause(e10);
                    throw unknownHostException;
                }
            }
        }

        private a() {
        }
    }

    List a(String str);
}
