SetDNS is the easiest way to force your phone to use custom nameservers on WiFi and 3G / mobile networks.
Phones that have been rooted can change the DNS settings for both WiFi and 3G networks.
Non-rooted phones can override the DNS
settings for WiFi netw