Possible Duplicate:
How do you get the current DNS servers for Android?
I want to get hold of the dns servers in android. this thread says there is some android.net.NetworkUtils class but I found out that there’s no such class. Same question was asked here but it was unresolved.
Here’s a Project example that works:
https://github.com/rorist/android-network-discovery/blob/master/src/info/lamatricexiste/network/DnsDiscovery.java