I've searched the web and I couldn't find any documentation about the DNS resolving in the android OS. Can somebody, please, point me to the documentation.
If not, could anyone explain which of the net*dns{1,2} properties is used to do actual resolving and what is the meaning of others.
Also, is there a way (without changing the code) to permanently change DNS servers so that they are not updated after 3g/2g reconnect (rmnet). If, in contrast, I need to change the code could somebody point me to the class/file/directory where I should do it.
Thanks
Related
Hey folks,
Just wondering if there is an easy way to adjust the timeout that Android will wait for before giving up on obtaining an IP address via the wireless connection?
I know in linux you can specify that in dhclient.conf in /etc/ but that doesn't exist in Android. It appears it uses dhcpd to obtain IP addresses.
Any ideas?
Thanks
--H
Did a quick search on google & most of the hits lead back to you
It seems the dhcp client Android uses is dhcpcd as you found out elsewhere on xda.
The original author, Roy Marples, has a an active blog. Perhaps you could try asking him directly?
Afraid I can't find anything more helpful than olearyp's advice in the above xda thread.
Thanks for the advice. I'll see what else I can find. The options in dhcpcd.conf do seem to be obeyed, but the "timeout" parameter may or may not respected by some other component in Android.
I'll keep looking around...
Hi all!
This is my first thread, and I hope I've done everything correctly (noob video, forum rules, etc ...). Well, I'd like to know a little bit more about VPN features in Android.
I use official Android Samsung ROM 2.3.2, but I think my questions are valid for any kind of ROM/device.
I've tried to set PPTP VPN, but I had troubles. Anyway, I would like to know more about that feature:
- Does *ALL* traffic goes through the VPN (data connection), or does some apps can bypass it?
- I heard about default VPN implementations in Android is crap (PPTP, L2TP ...). Can you confirm it, or give me Google keywords?
- I would like to redirect *ALL* my traffic to a server, in way to dump all connexion.
- OpenVPN sounds a good solution for what I want to do, but do I need to know if we can install it without rooting my phone.
Well, I hope there is not another similar topic I am actually making a little study, so if you affirm something, please reference your sources (or a name/website/author ...)
Thank you
Nobody can give me a piece of advice ? :/
android vpn
hi
first you have to setup a android vpn service and then you can setup above features check (purevpn.com/vpn-service/android-vpn.php)
Hi!
Thank you for your reply! But I don't want to use these service, I want to create mine (I got some Debian servers ...)
Anybody else ? :/ I'm quite desipointed to see so few answers ... Or maybe I missed the good topic ..
I don't have much time to look into it at the moment, but for those of you who tether either internet or bluetooth you should look into getting NAT going on your phone. This requires root as far as I know.
You can use iptables (comes with our kernels), ipchains, netfilter, or what ever else passes for NAT/firewall these days on linux. I'll probably end up compiling a ipchains binary here in the next couple weeks if I don't find one (I haven't been able to as of yet)
That will solve the problem of detection via originating address.
To bypass deep packet inspection, look into an encrypted VPN solution. There are some free ones out there, or you can try something like what Giganews offers. Depending on how AT&T does things, this could also potentially speed up your service because many ISPs give VPNs higher QOS priority. This could also be a bad thing because they could decide you need to be on the enterprise plan. Use at your own risk. If you really want to get crazy, tunnel a VPN through an SSL proxy.
One other thing that will help that will help in general is to install any firewall program. Here are a couple I found on the market (sorry can't link yet):
com.wemobs.internetfirewall
com.mm.plugins.contactsprotect.droidwall1
com.dexters.andfirewall
com.googlecode.droidwall.free
I have not tested any, but they all appear to allow you to pick and choose which applications can access the internet. What better way to make sure no applications are phoning home without permission.
These may or may not turn on the NAT functionality for you.
YMMV, but I hope this helps someone
I think tor has some android proxy service, should help.
Hi everyone,
I need a list of all available wifi networks, but it seems Windows Phone does not allow that.
I don't need to submit the app to the marketplace. Thus, an interop/pinvoke solution would also be okay. Is there any possibility to get such a list? Does anyone have more information about that? It would also be great to get the signal strength of the networks.
Thanks in advance!
MSDN is your friend:
http://msdn.microsoft.com/en-us/library/gg159330.aspx
Not the simplest API I've ever seen, but it looks possible. OpenHandle->EnumInterfaces->GetAvailableNetworkList->CloseHandle. You might also want to use RegisterNotification and Scan before calling GetAvailable.
To write native code that can do this for you, and make it callable from managed code, see Heathcliff74's guide: http://forum.xda-developers.com/showthread.php?t=1299134
Hello geniuses, ( and I mean that literally, you guys are amazing) I have Direct TV and just got my hands on there Cinema connection kit witch allows me to connect to an internet source wireless-ly. Anywho, the error I am getting is asking for my default gateway, and my DNS, and that is way over my head. Can anyone assist? I am running a rooted Turbo. Thanks in advance!
Special~k said:
Hello geniuses, ( and I mean that literally, you guys are amazing) I have Direct TV and just got my hands on there Cinema connection kit witch allows me to connect to an internet source wireless-ly. Anywho, the error I am getting is asking for my default gateway, and my DNS, and that is way over my head. Can anyone assist? I am running a rooted Turbo. Thanks in advance!
Click to expand...
Click to collapse
Hello and thank you for using XDA Assist.
It's unclear what Android-related specific problem you have but if by "Turbo" you mean a Verizon Motorola Droid Turbo, there is a forum specifically for questions about that device at http://forum.xda-developers.com/droid-turbo/help where you may want to ask Turbo-related questions.
That said, if the Direct TV device simply needs information about your internet connection, you would need to know the address of your WIFI router (it'll be something like "192.168.0.1") and your default DNS server (maybe "8.8.8.8" for Google DNS?), something whoever installed your internet connection should be able to provide.
If all else fails, try posting with all relevant details in the general forum at http://forum.xda-developers.com/general/general where someone might be familiar with your specific situation.
Good luck!
I appreciate your reply... and yes I was referring to the droid trubo. The internet service I am referring to, however, is my Turbos hotspot. I figured anyone running 4.4 or 5.1, no matter the device could possibly help. I know its possible, and I came very close last night to getting my Direct TV to connect to my phones hotspot. Everything else in my house is connected to my phone, not sure why this won't. I am certain its an address issue, and the default gateway and DNS is the culprit.
Special~k said:
I appreciate your reply... and yes I was referring to the droid trubo. The internet service I am referring to, however, is my Turbos hotspot. I figured anyone running 4.4 or 5.1, no matter the device could possibly help. I know its possible, and I came very close last night to getting my Direct TV to connect to my phones hotspot. Everything else in my house is connected to my phone, not sure why this won't. I am certain its an address issue, and the default gateway and DNS is the culprit.
Click to expand...
Click to collapse
Hello again.
If you are connecting though your phone's hotspot feature, then you have to use its address. That information depends on your phone, ROM and which and how many other devices are on the local network you establish, among other factors, but it's probably in the "198.162.?.?" range mentioned earlier and you can probably set "8.8.8.8" (Google) as your DNS provider. One simple way to determine your default gateway's address is to use whatever other phone, tablet, or computer you connect to that hotspot and execute a "traceroute" command. The first entry will be the gateway. I'm afraid I can't tell you how to do that specifically for your device/OS but most all operating systems have a similar command.
We cannot provide technical support nor can other members reply to your posts here on XDA Assist but, as suggested earlier, asking in the Turbos' Q&A thread at http://forum.xda-developers.com/droid-turbo/help would be the best way to get help
This thread is now closed.
Once again, good luck!