Quote:
Originally Posted by tiptoekirk
I need to change the DNS settings for a connection I use a lot that is managed by company who has setup OpenDNS to block a lot of stuff...
How can I go about doing this on a wpa encrypted wireless network where i do no not have a dynamic ip address?? It seems it only supports changing a DNS server when the phone is setup dynamically.. I need it to work on DHCP, I just need the DNS server changed, i dont need or want a dynamic ip..
HELP!
|
Not sure if i get that... When you use static ip there is a section that allows you to specify the DNS... not sure what you mean  The problem as i see it, is that there is no easy way (via android GUI) of changing DNS if you use DHCP
Anyways... try...
adb shell setprop dhcp.eth0.dns1 <IP>
adb shell setprop dhcp.eth0.dns2 <IP>
etc
This will only change the DNS server. If you know shell scripting, You could make this more permanent by editing :
/system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf
If that works, and you are unfamiliar with shell scripting, then post some conditions (i.e SSID of network, gw of network etc) and i'll see if i can knock something up for you.
Hope that helps
|