MrG MrG - 1 year ago 294
Java Question

okhttp3 how to set Dns

I need set a DNS in my app.

I can't figure out how to add it:

//Http Client
OkHttpClient.Builder client = new OkHttpClient.Builder();

Answer Source

You can set the DNS via the WIFI settings and then just do this:


now it should get the info from there.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download