Anyway to change DNS - G1 Android Development

Would like to edit my DNS settings on this. Is it possible? After hearing what sounds like a DNS poisoning, would like to swap out TMOs DNS for another provider.

Grab anycut off the marketplace.
Long tap on the desktop -> shortcut -> activity -> ip settings.
I've been using openDNS from the moment I got the phone. Works like a charm.
edit - shouldn't have replied that quickly... this only works for WiFi as far as I know... but I haven't tested that. Will do so now.
edit 2 - well... scratch all that. I just tested opendns on both wifi at my home and using edge and both did not work. I guess ip settings doesn't work?

That is a nice find for when you are on wifi. It doesn't change your DNS when you are on the network. I have also wanted to change my DNS to Opendns but have not found a way to change dns on data connection. Any help would be appreciated.

angel-78 said:
That is a nice find for when you are on wifi. It doesn't change your DNS when you are on the network. I have also wanted to change my DNS to Opendns but have not found a way to change dns on data connection. Any help would be appreciated.
Click to expand...
Click to collapse
Can you confirm that is works for wifi? Opendns.com/org isn't showing that it's working for me.

Ummm opendns.com/org doesn't work for me and I am on opendns

Stupid question: why are you worried about DNS poisoning? I'm aware of what it is, but I'm not aware of how someone would exploit it.
They'd have to find an exploit on T-Mobiles DNS servers (or the higher servers that they receive the information from), that would either: a) use a "fake" higher DNS server to get info from, one that would provide spoofed entries, or b) insert fake entries into the cache. Correct?
Curious as to why you'd be paranoid about this tbh. Even with OpenDNS, if there's an exploits on T-Mobiles servers, wouldn't they be able to exploit it on the edge/3g servers? And if OpenDNS were ever compromised, it would leave hundreds of thousands of users more vulnerable, vs the (very) few people who use their cell phone for web banking.

neoobs said:
Ummm opendns.com/org doesn't work for me and I am on opendns
Click to expand...
Click to collapse
Confusing syntax on my part. I meant .com or .org.

Gary13579 said:
Stupid question: why are you worried about DNS poisoning? I'm aware of what it is, but I'm not aware of how someone would exploit it.
They'd have to find an exploit on T-Mobiles DNS servers (or the higher servers that they receive the information from), that would either: a) use a "fake" higher DNS server to get info from, one that would provide spoofed entries, or b) insert fake entries into the cache. Correct?
Curious as to why you'd be paranoid about this tbh. Even with OpenDNS, if there's an exploits on T-Mobiles servers, wouldn't they be able to exploit it on the edge/3g servers? And if OpenDNS were ever compromised, it would leave hundreds of thousands of users more vulnerable, vs the (very) few people who use their cell phone for web banking.
Click to expand...
Click to collapse
Guess you don't frequent boards as much as myself. It has already happened twice now. Just search for browser hijacked...
Being it has only been on Edge/3G, it must be their DNS. WIFI has never been affected.

Open an adb shell or Terminal Emulator and type
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Those are ip addresses for OpenDNS, so use your own if you want something else. It might not be persistent through reboots though. If it isn't, append it to init.rc. I can't test this on actual hardware right now but on the emulator it does pass OpenDNS's test (in the upper right corner). Make sure you set the properties before opening the browser.

jashsu said:
Open an adb shell or Terminal Emulator and type
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Those are ip addresses for OpenDNS, so use your own if you want something else. It might not be persistent through reboots though. If it isn't, append it to init.rc. I can't test this on actual hardware right now but on the emulator it does pass OpenDNS's test (in the upper right corner). Make sure you set the properties before opening the browser.
Click to expand...
Click to collapse
thanks trying this now and it seems to work well

Not only will it not persist on reboot, it will not persist over DHCP, so every time it reconnects to the network, this will have to be redone.

well, dunnow if you'v seen this
Mobile or other devices :
DNS servers are typically specified under advanced wi-fi settings. However, as every mobile device uses a different user interface for configuring DNS server settings, we provide only a generic procedure below. For more information, please consult your mobile provider's documentation.
To change your settings on a mobile device:
1. Go to the screen in which wi-fi settings are specified.
2. Find the screen in which DNS server settings are specified.
3. If there are IP addresses specified in the fields for the primary and seconday DNS servers, write them down for future reference.
4. Replace those addresses with Google IP addresses: 8.8.8.8 and 8.8.4.4.
5. Save and exit.
6. Test that your setup is working correctly; see Testing your new settings below.
Click to expand...
Click to collapse

Ather said:
well, dunnow if you'v seen this
Click to expand...
Click to collapse
Nice try
But that will only affect WiFi.

Ather said:
well, dunnow if you'v seen this
Click to expand...
Click to collapse
that only works for wifi or 3g connection as well?

I think the only way you can use T-Mobiles network is through there DNS. I think they have it locked to that. I remember when I used to tether if you right clicked a picture (that is on the internet obviously not on your hard drive) and went to properties it was never listed just the url that it was supposed to be it also had an ip before that url. That ip was always the same no matter what site. I think there is a proxy running on one end or the other.

aad4321 said:
google dns is the fastest and best...
8.8.8.8
8.8.4.4
Click to expand...
Click to collapse
Prove that google dns is faster than opendns, it hasn't even been out for a week yet while opendns is very mature.

This benchmark would have to disagree with you.
http://gizmodo.com/5420931/namebench-helps-you-find-the-fastest-dns-server-for-your-computer

It is highly dependent on your location. Google DNS might be faster than OpenDNS for some, while UltraDNS might be faster than Google DNS for others.
Try out the benchmarks yourself to see which one is the fastest for you. I use OpenDNS myself.

google dns is not at the moment everywhere the fastest but dont worry it will be. suggest you dont use this for t-mobile nl tv coz this wont count for your download limit and wont add to your download fair-use-time other dns probably will

tried nice worked on x10

Related

Change your phone to google's DNS instead of carrier's

I just want to share this link that i came across today by HTCdev. Hopefully this helps some of you guys. It claims it's going to help 3g/4g speeds!
htcdev.net/topic/229295-download-flashable-google-dns-zip/
It look interesting.
Thanks
Has anyone done this? Did you notice a speed difference?
Will try it tonight. If Google's as good as they look, this might own. I already use Google Voice to SMS over data.
I tried and my speeds increased from 315 to 458 and 22 to 87 kbps, download and upload respectively (tested in a 8th floor office bldg).
Sent from my PC36100 using XDA App
What devices will this work on?
javidnky2005 said:
I tried and my speeds increased from 315 to 458 and 22 to 87 kbps, download and upload respectively (tested in a 8th floor office bldg).
Click to expand...
Click to collapse
I won't say I don't believe you, but it is impossible that only using another DNS server increases the upload/download speed.
Tom-- said:
I won't say I don't believe you, but it is impossible that only using another DNS server increases the upload/download speed.
Click to expand...
Click to collapse
Actually, that's not true. It has to do with pipe bandwidth and speed. Verizon obviously isn't as big as Google, and they also can handle better servers, it also has to do with where you are in the world, and on their network, and what you are doing. Google's DNS servers are configured and made for SPEED and speed only. Verizons DNS can also be bottlenecked to ensure "data consistancy" as they have came out and said before.
Chris says it better than I can though.
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
0vermind said:
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
Click to expand...
Click to collapse
LOL I got it thanks. Speedtest i was getting 1.95down and 1.48up before but using this I get either a really good test score or really bad. ex. one time it will be 2.59down and 1.75 up and next time ill get 0.25down0 .5up-- permissions are different for these files as apposed to the files in the zip. i changed them to match the directory but it diddnt change anything
DNS just translates URLs to IP addresses. I don't see how it would help upload/download speeds once you've connected to a site, but a bad DNS server will make connecting to a site take a while. Slow DNS servers make it take longer to find the site, but once it's found, how would DNS matter?
This script requires you to run it with an argument telling it which ppp device to use, ppp0 or ppp1 (does android even use ppp? mine doesn't but it's a Nexus One that doesn't have anything added by any carrier). If you don't supply it with an argument, it won't do anything. It will skip the first half of the script and enter incorrect information in the second half.
(it tries to enter things like: "net.$NAME.dns1", the $NAME variable is the same as the argument you use to run the script. If you don't use an argument, it will enter "net..dns1")
The script is placed in /etc/ppp/ip-up, meaning it is supposed to be executed when the ppp daemon detects a ppp connection. I don't think the ppp daemon can run it with arguments.
I personally don't see how flashing this script would do anything at all.
Just open a terminal emulator and type:
su
echo "nameserver 8.8.8.8
nameserver 8.8.4.4" > /etc/resolv.conf
voila, DNS changed!
fubaya said:
DNS just translates URLs to IP addresses. I don't see how it would help upload/download speeds once you've connected to a site, but a bad DNS server will make connecting to a site take a while. Slow DNS servers make it take longer to find the site, but once it's found, how would DNS matter?
This script requires you to run it with an argument telling it which ppp device to use, ppp0 or ppp1 (does android even use ppp? mine doesn't but it's a Nexus One that doesn't have anything added by any carrier). If you don't supply it with an argument, it won't do anything. It will skip the first half of the script and enter incorrect information in the second half.
(it tries to enter things like: "net.$NAME.dns1", the $NAME variable is the same as the argument you use to run the script. If you don't use an argument, it will enter "net..dns1")
The script is placed in /etc/ppp/ip-up, meaning it is supposed to be executed when the ppp daemon detects a ppp connection. I don't think the ppp daemon can run it with arguments.
I personally don't see how flashing this script would do anything at all.
Just open a terminal emulator and type:
su
echo "nameserver 8.8.8.8
nameserver 8.8.4.4" > /etc/resolv.conf
voila, DNS changed!
Click to expand...
Click to collapse
When loading a website, it's loading things from everywhere, for example, on my website, it loads things from Google Analystics, my Godaddy Grid Server (which is a bunch of different addresses), Statcounter, and ads. Each lookup takes take time complete and resolve. As far as file transfer, it has absolutely nothing to do with that. That's between you and the server you're downloading from, as well as the load of the server itself.
Does that command change the DNS permanently?
0vermind said:
HTCDev.net is completely down. I can post a mirror. Just hold on one second.
UPDATE http://www.filedropper.com/googledns
Click to expand...
Click to collapse
Hey can you repost this if possible? The original link doesn't work and neither does the one you provided.
another option...
This is a cool script, but I prefer to use Masqed Crusader app. It does the same thing (Google DNS) but adds Local Nameserver Caching and Ad-blocking. And it can be turned off and on just by hitting a button... no permanent changes.
lexcyn said:
Hey can you repost this if possible? The original link doesn't work and neither does the one you provided.
Click to expand...
Click to collapse
I second this. Willing to try it out at least.
I would have thought this would have got more traffic?
Any brainstorming, in regards to this?
Sent from my Eclipsed RazrMaxx!

[Q] DNS Suffix on Andriod

Within my company we use a DNS suffix to connect to the internet/intranet. Without that DNS suffix you can not do anything. Does anyone know how to add this within android. Also it is not an IP rather a FQDN.
Thanks!
ssjgoku24 said:
Within my company we use a DNS suffix to connect to the internet/intranet. Without that DNS suffix you can not do anything. Does anyone know how to add this within android. Also it is not an IP rather a FQDN.
Click to expand...
Click to collapse
Add
Code:
search example.com
to resolv.conf. FWIW, what you are doing is pretty much broken. (As for "you cannot do anything, that is simply not true, the name resolution will not work without specifying FQDN - i.e., will not autoappend domain-suffix - that is all.)
Not really sure whether the DHCP client on Android supports this (ISC DHCP v4 does support DHCP option 119).
Also, unless the dhcp client gets run with -R option (talking about isc-dhcp here), resolv.conf will get overwritten.
IOW, fix your DHCP/DNS to use FQDNs everywhere.
Thanks for the help.
So basically there isn't a way to do this on android because of the broken functionality? I don't have access to the servers to change the way the DNS works.
Well, I pretty much see this as a non-issue. Simply use FQDNs for whatever you need and that is all; "we use a DNS suffix to connect to the internet/intranet" does not make much sense really.
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
ssjgoku24 said:
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
Click to expand...
Click to collapse
What?
Code:
> adb shell
$ getprop | grep dns
Kindly post the output.
ssjgoku24 said:
Okay. Let me put it this way. I cannot access www.google.com (or any network resource) on any pc without adding example.com to the DNS suffix list under the advanced properties of ipv4 in the network adapters properties. Because there is no option like this on android I cannot browse the web, or access anything. All you get is this page could not be displayed.
Click to expand...
Click to collapse
What?
Code:
> adb shell
$ getprop | grep dns
Kindly post the output.
P.S. Regardless the above (since I do not feel like debugging the über-broken network setup in $your_company for much longer). Kindly note the IP address, netmask and gateway settings you get when using DHCP. Then go to WiFi settings, select Advanced, check Use static IP, input the details noted before there and stick 8.8.8.8 and 8.8.4.4 to the DNS1/DNS2 fields. This way, you can browse internet just fine using Google public DNS servers.
[net.change]: [net.dnschange]
[net.dnschange]: [56]
[net.rmnet0.dns1]: [68.28.154.91]
[net.rmnet0.dns2]: [68.28.146.91]
[net.dns1]: [153.80.17.120]
[net.dns2]: [192.127.43.152]
[dhcp.eth0.dns1]: [153.80.17.120]
[dhcp.eth0.dns2]: [192.127.43.152]
[dhcp.eth0.dns3]: []
[dhcp.eth0.dns4]: []
Thats the output. But I tried putting in google's DNS like you said and I get nothing.
Well, simply put - assuming 153.80.17.120 and 192.127.43.152 are those DNS servers of your company (I cannot see any WiFi anywhere in the output you posted, maybe your phone is special and calls wifi iface as eth0 instead of wlan0) - those are supposed to resolve www.google.com or whatever else. With or without any idiotic suffix. You can check this like
Code:
nslookup www.google.com 153.80.17.120
on a Windows box (or in a similar way on Linux/MacOS). If they do not do this unless you use the suffix, then your network admins need a kick in their ass and that is the end of the story. Sorry, this is not an Android problem at all.
P.S. Not really sure what you mean by "get nothing", getprop should show the Google servers instead of your broken ones once you have done that.
Alright. Thanks for your help.
If anyone else has a solution please feel free to help me out.
Thanks!
P.S. I'm using CM7 on an Evo 4G

[Solved] How do you change the DNS?

How do you change the DNS, not for wifi, but for mobile data? Does it improve browsing performance?
Here is what I found out, thanks to zeppelinrox, on how to change the DNS for the droid charge, you can use script manager to run it every hour or 2 since if you loose connection or whatever the DNS will revert back to verizon. You can use whatever DNS you want. You can put it in the init folder but you need too add a sleep time like sleep 30 or longer play around with it and after reboot go to myresolver.info to check if the settings went through. The script below changes wifi, 3G and 4G DNS
#!/system/bin/sh
setprop dhcp.tiwlan0.dns1 208.67.222.222
setprop dhcp.tiwlan0.dns2 208.67.220.220
setprop net.ppp0.dns1 208.67.222.222
setprop net.ppp0.dns2 208.67.220.220
setprop net.dns1 208.67.222.222
setprop net.dns2 208.67.220.220
setprop net.rmnet0.dns1 208.67.222.222
setprop net.rmnet0.dns2 208.67.220.220
setprop net.pdpbr1.dns1 208.67.222.222
setprop net.pdpbr1.dns2 208.67.220.220
maurogg84 said:
How do you change the DNS, not for wifi, but for mobile data? Does it improve browsing performance?
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Click to expand...
Click to collapse
See this I would follow the instructions for manually changing the info as the CWM zips may not work for the Charge.
imnuts said:
See this I would follow the instructions for manually changing the info as the CWM zips may not work for the Charge.
Click to expand...
Click to collapse
I did the changes, but it seems they don't stick after reboot, would the following commands work if I put them in a script for the init.d folder?
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 208.67.222.222
setprop net.eth0.dns2 208.67.220.220
Edit the file /system/etc/ppp/ip-up and change the lines specified. That should allow the changes to stick through a reboot, and will take effect anytime you enable/disable the data connection.
imnuts said:
Edit the file /system/etc/ppp/ip-up and change the lines specified. That should allow the changes to stick through a reboot, and will take effect anytime you enable/disable the data connection.
Click to expand...
Click to collapse
I did, just thought that the ip-up would keep the DNS addresses, but after reboot I checked the file again and the file reverted to the original without the addresses. That's why I assumed they didn't stick. But since I did then is ok. Is there a way to check in terminal what DNS are you using?
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
imnuts said:
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
Click to expand...
Click to collapse
That's probably what happened, I didn't do it with root explorer, I'll try again. Thanks!
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
maurogg84 said:
That's probably what happened, I didn't do it with root explorer, I'll try again. Thanks!
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
Click to expand...
Click to collapse
I doubt it will make your browser go faster. Try xscope browser see if it's faster. If it is then nothing to do with DNS, but something is funky with your stock browser/phone.
The app SetDNS seems to work. It's pretty easy.
Sent from my SCH-I510 using XDA App
xdadevnube said:
The app SetDNS seems to work. It's pretty easy.
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
I thought that only changed the DNS for wifi.
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
buhohitr said:
I doubt it will make your browser go faster. Try xscope browser see if it's faster. If it is then nothing to do with DNS, but something is funky with your stock browser/phone.
Click to expand...
Click to collapse
It won't make the connection faster, but it will likely speed up DNS lookups (and reliability) which can make things seem faster.
Editing /system/etc/ppp/ip-up didn't work for me either. I verified that the file saved properly, but on reboot or airplane mode toggle, everything returned to default. I even added a bogus setprop in ip-up as a test. After cycling airplane mode, running getprop didn't show my bogus entry. It's almost as if /system/etc/ppp/ip-up isn't being called at all.
[edit: Once I dropped to 1X service (my signal sucks at work), my bogus setprop entry showed up. I had already pulled out my custom DNS entries from while I was testing, but I thought this was rather interesting. So it appears that /system/etc/ppp/ip-up is only called when dropping to 1X service. I could be entirely wrong, though.]
imnuts said:
It won't make the connection faster, but it will likely speed up DNS lookups (and reliability) which can make things seem faster.
Click to expand...
Click to collapse
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Reilly1812 said:
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
It sounds like you may be confused about what DNS does. It is the system that converts a name, like www.google.com, to an IP address that your computer can actually use. Google's IP addresses aren't different for Verizon than they are for Sprint or AT&T or Comcast or anyone else. It's the same with anyone else. DNS is a universal system that returns the same output for the same input regardless of what server you are using. The problem is that a lot of ISP run DNS servers are poorly configured, poorly maintained pieces of trash. That's why public servers like OpenDNS or Google DNS exist. They are far more reliable, and often far quicker than your ISP DNS server. I haven't used my ISP's DNS servers in a decade. Prior to OpenDNS, I ran my own DNS server.
Reilly1812 said:
Isn't this type of change asking for trouble? Assuming the two ip addresses shown are verizon's, what happens when they change? What happens when verizon reorgs their networks? Isn't it safest to take all of the DHCP settings verizon pushes to you?
My apologies if I missed the obvious here but I always use the DNS servers my WAN provider assigns and change them when they instruct me to. And yes, it has actually happened.
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
The only thing you'll loose is the backup VZW DNS server. The only two things that I've found that you need VZWs DNS info for are OTA updates and MMS as they use internal hostname info that Verizon doesn't share. That is why you can't change both of them.
As far as your home ISP and them asking you to change DNS servers, several people have "lost" there internet connection at home because the ISP DNS servers are junk, and almost no one switches them from the default ever. This was a huge issue for Comcast a few years ago, and I know that other ISPs have had issues with reliability as well as updating DNS info so that it points to the correct location. OpenDNS and Google tend to update their info faster, and also offer faster lookups for names than ISP DNS servers, despite the fact that you have to go out of network to contact them.
imnuts said:
Make sure that /system is mounted as read-write and that you saved the file. Otherwise, it will revert (or not save at all). To check to see if it worked, I would navigate to http://myresolver.info and it will tell you the DNS address you used. Then, you may just need to look at the hostname for the DNS ip to figure out if it worked as most places use anycast now to route you to the closest host.
Click to expand...
Click to collapse
Ok so I did the correct procedure to change the DNS, it maintained the change through reboots, but when I go to the website you mentioned with 4g connection, it didn't show the opendns addresses I added to the IP-up file.
Your IP address
2600:1004:b000:6d7:0:2:6cc7:8901 (?)
The source IP address of your DNS recursive resolver
66.174.95.212 (?)
njbrsdns2.myvzw.com
I'll have to look at it as it may setup the 4G connection differently. I do know that it worked quite well for me on the Fascinate and on my Charge for 3G.
You have a long ipv6 name....
Sent from my SCH-I510 using XDA
Shadowchasr said:
You have a long ipv6 name....
Sent from my SCH-I510 using XDA
Click to expand...
Click to collapse
Is it here when one say "that's what she said!"? lol
Eclipse 1.4 ROM
V6 Supercharged!
Kicking ass!
Imoseyon
Tegrak Overclock
see the original post!

How to get around tethering detection

As you all know most US (and i believe other) carriers try to charge us more for the data we already pay for if we want to use it in any method besides from our phone. There are a lot of apps that claim to get around it and it works for some and not for others, after some extensive google-fu and research i have found out that most if not all carriers use one of two methods of detecting tethering. 1.if the built in tethering is used the phone will use a separate tether specific apn 2.they look at the TTL of a packet, if tethering is being used the TTL will last past the WAN of the phone.
So i set out to try and find a way around this and a method of tethering that would work safely for all and get around TTL detection and i believe i have now found it.
Things you will need:
-Root
-ConnectBot
-ProxyDroid
-PDAnet (or any other tethering app)
-Something to SSH into
I will post more detailed instructions with screenshots and such if anyone wants but for now ill just keep it simple. Make sure your phone is on 3/4G. Open ConnectBot and connect to your ssh server, bring up the options menu and select port forwarding. Setup a dynamic (socks) proxy on port 8080 (or w/e you feel like) now open proxydroid and set host to 127.0.0.1 and make sure to enable global proxy (this does not work on all phones if it does not work for you then there is not much you can do) now open up a browser and go to any of the various ip checking sites and make sure your ip is showing up as the ssh servers ip and not a mobile one. Now enable pda net and do the same from the tethered device. If the ip is showing up as the remote servers then congratulations you are now tethering and they cant see the packets going to anything but the phone because everything is contained within the SSH session. Meaning the TTL on packets will end at the phones WAN as they expect them to.
I have been doing this on AT&T for some time now (around a month) and so far they have not found out and all is well, hope this helps at least a few people good luck!
Thwnks
Sent from my SCH-I500 using Tapatalk 2
I will test this out to see if it works for me. Thank you so much.
Well jesus you Americans really need a lesson in freedom
Sent from my GT-I9000 using xda premium
Hey, as long as we have our Freedom Fries, we're happy.
And fat.
I tried following you instructions, but when I try to visit a website no connection is available. What ssh server are you using. Have any idea where I may have gone wrong?
Thanks
Has anyone been able to get this working. Whenever I select "Global Proxy" in ProxyDroid, I get no data. I changed the host to 127.0.0.1, but should I leave the port to default 3128 and Proxy Type to HTTP? Is there any other changes I should make in ProxyDroid? Thanks
china99boy said:
I tried following you instructions, but when I try to visit a website no connection is available. What ssh server are you using. Have any idea where I may have gone wrong?
Thanks
Click to expand...
Click to collapse
Make sure you set the user agent on your computer browser to mobile. Had to do tethering for a client few days ago, and that was the problem. For Firefox and Chrome there are plugins for it.
Thanks for your response....I haven't gotten to the PC as yet. I am don't get any internet connection when I enabled ProxyDroid in with Global Proxy checked. And the OP said to make sure it is selected. So this is where I am stuck. Not sure whether I need to do any other configuration in regards to ProxyDroid. But thanks for your help.

Important feedback needed regarding OnePlus 6 OXYGENOS

After reading the topic below I would like to ask some feedback from fellow XDA members:
https://forums.oneplus.com/threads/secondary-dns-forced-to-8-8-8-8.999920/
What needs to be done from your side:
You need to be on OxygenOS, not custom rom.
Make sure DHCP (your router most likely) feed LAN devices with a single DNS server
Check your OP device if it assigns itself Google DNS as a second dns server. To do so just tap on the connected WiFi (Under Settings -> WiFi & Internet -> WiFi) and scroll down where the DNS Field is.
If that's the case, at least in my mind this is a privacy violation (who asked my permission to feed google with all my resolving data?) at least.
Could I have some feedback on this please?
Never noticed this before...you ask a valid question in my mind. Hopefully someone can give us some reliable feedback. It appears that you can choose to use a static IP in the WiFi settings and enter two of your own DNS addresses. If that is the case then you can use the same one that your router uses or one of those that doesn't track you???
The OS shouldn't add a DNS server on its own so it would be good to find what's causing this issue for you.
What I can say is that Omnirom does no such thing, just checked on my device
Sent from my ONEPLUS A6003 using Tapatalk
Cave_diver said:
The OS shouldn't add a DNS server on its own so it would be good to find what's causing this issue for you.
What I can say is that Omnirom does no such thing, just checked on my device
Click to expand...
Click to collapse
This in not just me, there are plenty of people reporting the same on the provided link.
Also, Omnirom or any other custom roms are unrelated.
I'm interested in OOS feedback.
Please don't derail the thread
You didn't specifically mention OOS in your first post so I figured it was worth pointing out that it appears to be an OOS issue, not a general pho n/vendor/driver issue.
FWIW, the DNS settings should be somewhat irrelevant anyway since Pie offers the private DNS feature which should fix this and other privacy concerns by overriding the DNS settings and encrypting DNS traffic.
Sorry for "derailing" your thread, good luck with it.
P.S: why even ask on XDA for people to verify what has been well established on another forum and by yourself?
Sent from my ONEPLUS A6003 using Tapatalk
Cave_diver said:
FWIW, the DNS settings should be somewhat irrelevant anyway since Pie offers the private DNS feature which should fix this and other privacy concerns by overriding the DNS settings and encrypting DNS traffic.
Click to expand...
Click to collapse
That's not the point. The point is that if OxygenOS feeds our devices with a 3rd party DNS server without user knowledge or confirmation is unethical and in many cases illegal.
Cave_diver said:
P.S: why even ask on XDA for people to verify what has been well established on another forum and by yourself?
Click to expand...
Click to collapse
Because I need confirmation from more than 4-5 people (including myself)
DenyDarko said:
That's not the point. The point is that if OxygenOS feeds our devices with a 3rd party DNS server without user knowledge or confirmation is unethical and in many cases illegal.
Because I need confirmation from more than 4-5 people (including myself)
Click to expand...
Click to collapse
I agree with it being a bad idea on behalf of OP and something that needs to be fixed immediately.
Having said that, it was probably either by mistake or due to some tech staff thinking he might be doing users a service. I doubt it was a deliberate effort to gain data or any other benefit on the behalf of OP
Sent from my ONEPLUS A6003 using Tapatalk
I can confirm that I get the 8.8.8.8 in DNS
I am on OS Beta 14 unrooted etc etc.
8.8.8.8 is Google's DNS servers, it had the exact same setting on my Nexus 6. You can easily remove the setting via the modify DNS server setting.
You might want to disable Google's async DNS setting in Chrome or any Chrome based browser too.
Can confirm 8.8.8.8 sitting there on OOS 9.0.4
DenyDarko said:
Could I have some feedback on this please?
Click to expand...
Click to collapse
Same sh*t on OP7.
Did you find any way to disable this thing?
You'll find it's a Google thing not a OnePlus thing. Google products get really ****ty if they can't get to Google DNS servers. To help ease your mind you can use Private DNS which should send everything through that DNS over TLS server, secondly within DHCP assign a Primary and Secondary DNS which should override Google in the Secondary, lastly if you are running a firewall such as pfSense and not a home router you can setup rules to redirect all external DNS queries to the internal resolver.
vampyre_masq said:
You'll find it's a Google thing not a OnePlus thing. Google products get really ****ty if they can't get to Google DNS servers. To help ease your mind you can use Private DNS which should send everything through that DNS over TLS server, secondly within DHCP assign a Primary and Secondary DNS which should override Google in the Secondary, lastly if you are running a firewall such as pfSense and not a home router you can setup rules to redirect all external DNS queries to the internal resolver.
Click to expand...
Click to collapse
In my case i cannot set a secondary DNS via DHCP (because my router has only primary DNS setting available).
Btw, the problem seems related to this setting (https://discourse.pi-hole.net/t/disable-async-dns-resolver-in-google-chrome/9500) which sometimes, for unknown reasons, force Chrome to use secondary DNS, even if primary is fully reachable.
Crazy! Mine is that way too. Thanks for heads up! I changed mine to automatic and now my router controls it and Google's dns is gone! I was wondering why my send and receive on websites was slow since pie. This seems to have resolved it!

Categories

Resources