Changing DNS - G1 Android Development

This thread was initially started in the general G1 board although I believe it will get more attention here from individuals that would know more about it. Basically what I and the original thread author would like to know is if there is a way to manually configure the DNS. The objective is to use Opendns. Thanks in advance.
Original Thread- http://forum.xda-developers.com/showthread.php?t=517553

change dns
#change dns servers
setprop net.dns1 dnsaddress1
setprop net.dns2 dnsaddress2
Opendns
208.67.222.222
208.67.220.220
Use getprop command to check it after.
Works on dudes 1.1
It won't stick after reboot. Add to init for a more perminent effect. Also not sure how consistent it is, it'll pass open dns check for example but there's more dns entries when you check getprop.

I really want to know the facility of the dns changing while turn from wifi to edge or 3g, vice versa. It seemed the dns define in resolve.conf doesn't work while connect to edge.

Related

How do we set Opendns on 3G/EDGE/WCDMA?

Ok T-Mobile as well as other isps have been known to log dns servers to see
what users access and is a big privacy concern, I would like to use OpenDns
but I have not been able to do so, any help would be appreciated, here is
what I have tried:
added this to init.rc:
setprop ro.kernel.android.ndns 2
setprop net.rmnet0.dns1 208.67.222.222
setprop net.rmnet0.dns2 208.67.220.220
setprop net.dns1.108 208.67.222.222 # random dns setting set???
setprop net.dns2.108 208.67.220.220 # wtf
setprop net.dns1 208.67.222.222
setprop net.dns2 208.67.220.220
and also ran in terminal, restarted interface and still wont use opendns,
verified at welcome.opendns.com that opendns isnt setup properly...
T-Mobile/Google have obviously made it hard to change dns settings for a reason and I would like to control this myself, as well as others should for privacy/security purposes, so lets figure this out
defcon
P.S. I know you can change DNS on wifi, through ipsettings with anycut, the mobile network dns settings seem to be set by dhcp and are static and we cant seem to change them within a gui, so we gotta figure out how to hack the dns settings on boot or when the interface connects to T-Mobile or your cell network...
Maybe you might want to reconsider:
http://forum.xda-developers.com/showthread.php?t=508149
If you're too lazy to read the entire thread, basically there is evidence someone has registered some t-mo gateway ips with their opendns account and is poisoning some of the resolves. Atleast one gateway seems to be blocking resolves of gmail.
Anyway, T-Mo can track your traffic without DNS, I assure you. Unless you are running some kind of end-to-end encryption like tor or a vpn tunnel, they can (and probably do) perform deep packet inspection.
the dns settings are automatically reset when your network status changes and this seems to happen extremely often, so there's basically no point in using setprop
yea obviously, so we need to find an alternative solution.
this one works
You're fooling yourself if you think using an alternate DNS server is buying you any increase in privacy. Everything you are viewing over GSM is going through a proxy server. If you really don't want T-Mobile to know where you're going, your choices are basically:
1. Only use Wifi for browsing
2. Set up some kind of encrypted tunnel (via VPN, SSH tunnel, etc.) and point your web browser to it.
3. Only visit HTTPS sites (in which case T-Mobile will know the IP address you're going to but not necessarily the website domain).
jashsu said:
they can (and probably do) perform deep packet inspection.
Click to expand...
Click to collapse
I can confirm they DO use deep packet inspection.

WiFi DNS Does not Update

I've posted this over at the Rhodium Thread located here:
http://forum.xda-developers.com/showthread.php?t=731292
but haven't gotten a single response yet. Since this is a concern for more than one device I feel like I should post it here. Mods feel free to move this to the correct location if need be.
===================
So it seems to me that this is a problem on ALL Android devices that I have tested with. Here's the situation
I have a router in my house in which I have DHCP turned off so my device will grab an IP (Not Static) and DNS from the ISP. I need to find a way to be able to just change the DNS Settings to 208.67.222.222 and 208.67.220.220 on android without having to manually put in an IP since the IP will automatically get changed every few day's.
Android doesn't seem to let me do that. Does anyone know how? Going into the Advance Menu in the Wifi settings and changing the dns does not actually change anything... I noticed this on the following android devices as well: Moto Cliq, MyTouch 3g, old Kaiser running android on NAND, and my Rhodium Devices running android.
Any reason as to why Android isn't updating my DNS Settings? Any help would be appreciated.
starmena said:
I have a router in my house in which I have DHCP turned off so my device will grab an IP (Not Static) and DNS from the ISP. I need to find a way to be able to just change the DNS Settings to 208.67.222.222 and 208.67.220.220 on android without having to manually put in an IP since the IP will automatically get changed every few day's.
Click to expand...
Click to collapse
Ok so DHCP is assigning your network config, but you want to use different DNS servers than the DHCP allocated ones?
starmena said:
Android doesn't seem to let me do that. Does anyone know how? Going into the Advance Menu in the Wifi settings and changing the dns does not actually change anything... I noticed this on the following android devices as well: Moto Cliq, MyTouch 3g, old Kaiser running android on NAND, and my Rhodium Devices running android.
Click to expand...
Click to collapse
On my HTC Hero running an Android 2.1 ROM, unless "Static IP" is selected, I dont even get the option to change the DNS servers (option is greyed-out).
One way to manually change DNS is via shell if you have root access on your phone using ADB shell (or ssh, telnet etc if your ROM supports them), see this thread [Q] Help! Changing DNS settings .
Any network config tools on the app store?
-jc
starmena said:
I've posted this over at the Rhodium Thread located here:
http://forum.xda-developers.com/showthread.php?t=731292
but haven't gotten a single response yet. Since this is a concern for more than one device I feel like I should post it here. Mods feel free to move this to the correct location if need be.
===================
So it seems to me that this is a problem on ALL Android devices that I have tested with. Here's the situation
I have a router in my house in which I have DHCP turned off so my device will grab an IP (Not Static) and DNS from the ISP. I need to find a way to be able to just change the DNS Settings to 208.67.222.222 and 208.67.220.220 on android without having to manually put in an IP since the IP will automatically get changed every few day's.
Android doesn't seem to let me do that. Does anyone know how? Going into the Advance Menu in the Wifi settings and changing the dns does not actually change anything... I noticed this on the following android devices as well: Moto Cliq, MyTouch 3g, old Kaiser running android on NAND, and my Rhodium Devices running android.
Any reason as to why Android isn't updating my DNS Settings? Any help would be appreciated.
Click to expand...
Click to collapse
I'm confused by your question. If you have DHCP turned off your device's are not going to grab an IP address from your router. Why don't you turn on DHCP and let your router assign IP addresses. As doing so your devices will also use the DNS setting from the router which will be your ISP's DNS ip address. Unless you change your DNS settings in your router to one of the many public DNS servers available. My recommendation is turn DHCP to "ON" on your router. Maybe start your DHCP IP assignment at 192.168.1.100 and go up to 150. That way you can use the range from .2 to .99 for static IP's. This is how I configured my router but I'm also using DD-WRT firmware on my router which highly customizes the router. Alternately you can change your routers DNS ip setting to Open DNS server so there would be no need for you to change it on the phone if you are using WIFI. Just let your router do all that work for you. Hope this helps. Viva Santiago Rep Dom y NYC.

Need DNS changer app (or method) which actively locks DNS servers

I have tried all methods in the following link except DNS+DNSCrypt (having issues in flashing files):
https://forum.xda-developers.com/ge...-to-change-dns-android-device-t3273769/page1
.
I need something which actively locks DNS after I set it.
I have tried Override DNS & scripts but that only set my specified DNS after reboot and connectivity change and do not prevent DNS servers from changing.
you can lock your DNS server use using iptables on condition that you have NAT in both IPv4 and IPv6 in your kernel I posted this already in the AFWALL thread https://forum.xda-developers.com/showthread.php?t=1957231&page=456turning on or off a network device resets iptables but if the script is put into afwall that should not be a problem. I did not explain it there but if the need arises I will post again. By unsing something like this you transfer all DNS requests to the server of your choice regardless of what the Rom has configured the DNS to. However this does not hide from your service provider who can see the traffic only DNScrypt does.

DNS settings for FunkyHuawei

Hello did somebody can help me with setting up the dns of my TP-Link TL-WR740N i mange to make the dns to be to following in FunkyHuawei instruction but my eRecovery cant get the pacage and i get very upset about giving mt 18$ away without anything , if someone know the fix i will be very thankful
hey there, maybe you can refer to the instruction here: http://setuprouter.com/router/tp-link/tl-wr740n/dns.htm
the dns of funkyhuawei as of now should be:
Primary DNS: 213.202.238.238
Secondary DNS: 1.2.3.4
After you have set up, go to https://dnsleaktest.com to see if the dns setting is effective.
owichiu said:
hey there, maybe you can refer to the instruction here: http://setuprouter.com/router/tp-link/tl-wr740n/dns.htm
the dns of funkyhuawei as of now should be:
Primary DNS: 213.202.238.238
Secondary DNS: 1.2.3.4
After you have set up, go to https://dnsleaktest.com to see if the dns setting is effective.
Click to expand...
Click to collapse
I did all the steps and nothing but i want to ask something else, DId i need to have my internet proveder by Dynamic IP adress or dosen matter cuz im on PPPoE Russia with username and pass. and my pc get the DNS but my phone wont?
cropp7 said:
I did all the steps and nothing but i want to ask something else, DId i need to have my internet proveder by Dynamic IP adress or dosen matter cuz im on PPPoE Russia with username and pass. and my pc get the DNS but my phone wont?
Click to expand...
Click to collapse
i assume your PPoE connection goes through the router, and that you have set the DNS correctly on the router. they DNS setting in the router should override the DNS setting provided via PPPoE. it doesnt matter if you have fixed or dynamic ip address. if your pc and phone uses that same router then they should use the same DNS.
owichiu said:
i assume your PPoE connection goes through the router, and that you have set the DNS correctly on the router. they DNS setting in the router should override the DNS setting provided via PPPoE. it doesnt matter if you have fixed or dynamic ip address. if your pc and phone uses that same router then they should use the same DNS.
Click to expand...
Click to collapse
So here is some pics
cropp7 said:
So here is some pics
Click to expand...
Click to collapse
somehow i cant see the first image (the router config). pls repost. on the second image, are the network settings auto or manually inputted?
owichiu said:
somehow i cant see the first image (the router config). pls repost. on the second image, are the network settings auto or manually inputted?
Click to expand...
Click to collapse
Nvm i contaced Funky Huawei and they provided me with another methoud that fix my phone.
I think they changed their DNS tho..
$ nslookup www.zoom.com 213.202.238.238
;; connection timed out; no servers could be reached

Can't change DNS servers in wi-fi settings

Hello, I got trouble on many different ROMs (Corvus, Cherish, Havoc etc). When I open my wi-fi settings and set IP settings on Static IP, the button "Save" disappears and I can't change DNS.
How to solve it? Redmi note 8 pro.
I think you can't change the DNS because there is an overriding setting in effect called "Private DNS". If you have a DNS set up in Private DNS then you will not be able to change the DNS setting individually. I'm using Pixel 12 so it may be a bit different then I describe here, but you want to find the "Private DNS" setting in Android. To change the DNS that I use for WiFi, I,
1. Went into Settings and picked "Network & Internet"
2. Scrolled down to "Private DNS" and selected it
3. Selected "Private DNS provider hostname" and I filled it out. It must be a DNS name, it cannot be an IP address like 8.8.8.8. So, instead, if you wanted to use 8.8.8.8, you would enter "dns.google". To use Cloudflare 1.1.1.1, you'd enter, "1dot1dot1dot1.cloudflare-dns.com".
I hope this helps.
Actually:
NXbogusdomain = dodgy dns
I have in the past set my own ip to the dns I intend to use too...
Jerry1113 said:
I think you can't change the DNS because there is an overriding setting in effect called "Private DNS".
Click to expand...
Click to collapse
No, my wi-fi settings don't depend on personal DNS. I turned it off and nothing has changed. Still the button Save is inactive as soon as I turn on Static IP.

Categories

Resources