On M you can use ConnectivityManager.getLinkProperties(ConnectivityManager.getActiveNetwork()).getDnsServers()
On Thu, Oct 1, 2015 at 3:16 AM, Gunjan Pathak <[email protected]> wrote: > Hey everyone , > > I am new to android development dont know much in details i want to get > the details of the DNS when my device is connected to DATA COnnection . I > know it is possible when i am connected to WIFI connection but i want it > during the DATA CONNECTION . Please do guide me . > > Thank you . > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

