Can't change DNS at Android 5.0 - Nexus 7 (2013) Q&A

Hey guys. I flashed android lollipop 2 nights ago with fastboot. I am very happy with it so far but there is one major annoyance about it. I can't change DNS.
When I try to modify network settings after I change from to "DHCP" to "Static IP" I can't click save button. I also tried a few applications and all of them gave error.
The only thing I can think about while I was flashing the image I got boot.sig and recovery.sig errors but the guide video was telling to ignore those errors.
I am wondering if rooting the device would help me. I am open to any kind of suggestions.
Thanks a lot.

Might be a dumb answer, but I had that issue as well. Make sure when you fill out the info for static you actually type in ALL information. After I filled out each section manually the save button was lit and I was able to save changes. Not sure though if it worked, ipleak is telling me I still have a bunch of google dns's from around the country. Settings were saved though.

If you want to use dhcp but change the DNS server, this seems to be an open problem.

Can you change the DNS on your router instead of the device? On my Netgear I changed it so all devices use Google DNS (8.8.8.8 and 8.8.4.4) instead of Comcast DNS. Works great, and covers everything connected to it either wired or wireless.
I know that isn't really a solution for the problem, but it might help in the meantime.

I did have to use a static IP. My router is set to use different DNS servers though.

Related

WIFI Issue

I finally received my HTC desire today. After playing for a while, I found that it has a problem connecting to a hidden WPA2 secured wireless connection. Can anyone share some light with me here??
No probs here, tested with a couple of networks (hidden, of course)...
should install my new Linksys tonite (or on friday), and will post if anything goes wrong with that.
JapanLover said:
No probs here, tested with a couple of networks (hidden, of course)...
should install my new Linksys tonite (or on friday), and will post if anything goes wrong with that.
Click to expand...
Click to collapse
Hidden with WPA2?? impressive....you must be the lucky one!
sorry, WPA
I have the same issue.
I have a Draytek 2820n modem/router and my Desire will only connect to it if the SSID is not hidden (using WPA2 - that's what the router tells me).
Same problem here. At work the wlan is WPA2 with hidden ssid. Google'd the problems, and seems to be a known issue with Android.
Protac said:
Same problem here. At work the wlan is WPA2 with hidden ssid. Google'd the problems, and seems to be a known issue with Android.
Click to expand...
Click to collapse
I had a similar problem, and there is an application on the Market which is supposed to handle this. Sorry, I don't know whether it works, because finally I used SSID broadcast. I think the name was HiddenSSDI Enabler.
Jade_user said:
I had a similar problem, and there is an application on the Market which is supposed to handle this. Sorry, I don't know whether it works, because finally I used SSID broadcast. I think the name was HiddenSSDI Enabler.
Click to expand...
Click to collapse
I've just tried HiddenSSID Enabler on my Desire and it appears to work OK. You need the wi-fi turned on to enable it but you get no indication that it is enabled. I just rebooted (to be sure) and it works. If wi-fi is off when you enter your SSID, it will tell you that it can't find it - which seems logical to me.
Thanks for the tip Jade_user.
Sorry to hijack but it is along the same lines..
When I attempt to connect to my wifi router it gets stuck on Obtaining Address.. So I thought to myself right... set up static IP address for the desire... Connected.. Brilliant... except its not.. can't get on any web pages or any thing else that requires a connection!
I have been able to connect to other wifi spots fine but just doesn't want to seem to work on my router at home! I have checked the settings on the router and all appears to be fine (never had a problem before with any of the multitude of devices that have been connected). Checked the spectrum and the wifi channel appears to be all clear.
The SSID is not hidden, the security is WEP... the router is the stock job sent by O2 (they call it O2 Wireless box II, I forget the real model name but I am pretty sure its a rebranded Thompson..). I have a similar router at another address and it connects fine on that one and both are on ASDL2 lines.
Sorry for the long post but tried to include as much info as possible! Its really annoying not be able to get on the wireless as its a basement flat and phone reception is dire to say the least!!
Many thanks in advance,
Pixie
I have the same issue, phone thinks it is connected to wifi just fine, but no data.
However, after investigating a bit more, it seems that it is the DNS lookups that fails, since in that situation, surfing directly to an ip address works just fine, but not if it requires a dns lookup !?!
Hmmm... I just changed the security to WPA and now it is working fine :S.. still annoying because now we are going to have to change all other devices over.. Might be worth a punt in your case tunedude?
REB1 said:
I've just tried HiddenSSID Enabler on my Desire and it appears to work OK. You need the wi-fi turned on to enable it but you get no indication that it is enabled. I just rebooted (to be sure) and it works. If wi-fi is off when you enter your SSID, it will tell you that it can't find it - which seems logical to me.
Thanks for the tip Jade_user.
Click to expand...
Click to collapse
Can you tell me where in the option there is a feature called "HiddenSSD enabler" just cant seem to find them anywhere. Maybe I am blind, can you share some light???
kuailan said:
Can you tell me where in the option there is a feature called "HiddenSSD enabler" just cant seem to find them anywhere. Maybe I am blind, can you share some light???
Click to expand...
Click to collapse
Have you looked in the Market? It's not a standard option, you need to install it from the Market - just search for HiddenSSID.
REB1 said:
Have you looked in the Market? It's not a standard option, you need to install it from the Market - just search for HiddenSSID.
Click to expand...
Click to collapse
Ya found it, install it...but no effect?? dont even know if the program work. It just have the screen to type the SSD?? and then enable button. I have clicked many times on the button, but nothing happen. In the Wifi setting, I created the name but still it says out of range.
There is nothing wrong with the WIFI, when I broadcast the SSID, it work just fine. Anyway, I give up...I just broadcast them.
Just add MAC filtering as mentioned before - more secure than hidden SSID
EddyOS said:
Just add MAC filtering as mentioned before - more secure than hidden SSID
Click to expand...
Click to collapse
I'm using both - just to make sure.

[Q] Enterprise Wifi Authentication 802.1x PEAP

Hi all,
I've done a number of searches and tried some of the available solutions for other products (Nook, Galaxy) but can't seem to get this to work on my Galaxy Nexus.
I am trying to connect to our wifi network at the office which uses PEAP authentication. I can set it up fine from a laptop but can't get it to work on the phone. Anyone have it working?
I know this is an older thread, but I am having the same problem at work on my Galaxy Nexus. I tried a few apps that used to work on my other phones (most notably, Marcus95's well-known Wifi Advanced Config Editor), no dice. The app's author mentions he is aware of the issue and will fix it... once he gets enough donations to buy a phone to test his code on. Not a good sign.
Any ideas on manually configuring this? Any ideas are welcome.
My work uses peap and leap for their wifi's
I use a free app called LeapWifi
Its great and works like a charm
contagous said:
My work uses peap and leap for their wifi's
I use a free app called LeapWifi
Its great and works like a charm
Click to expand...
Click to collapse
I'll try it, thanks. If anyone has info on what these apps actually modify on the phone, I would be interested in investigating this further with a programmer buddy of mine.
Finally, no go. This is really annoying, why hasn't Google figured out how to integrate enterprise networking in its wifi management? Why does this work for some phones but not others? Frustrating to say the least.
Ok, I've been digging into this and it seems that the problem has to do with how the wpa_supplicant conf file (normally found under /data/misc/wifi) is written to by apps that support enterprise wifi configuration. As market apps don't seem to help at this point, I tried to manually add a wifi profile to connect to my work network, then checked out the logcat to see what was going on. I found multiple instances of what looks like the following, each line including different frequencies:
Line 327: I/wpa_supplicant(11577): wlan0: Trying to associate with 8c:b6:4f:a7:f1:11 (SSID='MYWORKWIFINETWORK' freq=2412 MHz)
Looks like a connection can't be made and the wifi interface is stuck. So, I checked out the wpa_supplicant file and the part that is specific to my work wifi setup looks like this:
ctrl_interface=wlan0
driver_param=use_p2p_group_interface=1
update_config=1
device_type=0-00000000-0
network={
ssid="MYWORKWIFINETWORK"
scan_ssid=1
key_mgmt=IEEE8021X
auth_alg=OPEN SHARED
eap=TTLS
identity="MYUSERNAME"
password="MYPASSWORD"
phase2="auth=PAP"
wep_key0="hjxfjxg"
priority=4
}
The problem is that when I try to edit key_mgmt to insert WEP and delete the wep_key0 value (as my work network generates keys automatically), there is no connection. This wasn't a problem when using the same method under a Google Nexus One nor an LG G2X phones, using Froyo, Gingerbread or even ICS, only on the GNex.
Is it a conf file syntax problem, or something entirely else at play here? Any insights would be welcome.
Ok, apparently, I'm the only one having this problem.
I am working with a tech support person at my workplace to see what is going on, I'll try to report back when I get some insights on how to fix this.
GenghisKhan67 said:
Ok, apparently, I'm the only one having this problem.
I am working with a tech support person at my workplace to see what is going on, I'll try to report back when I get some insights on how to fix this.
Click to expand...
Click to collapse
Please respond if you've figured this out. My work's authentication settings are very similar to yours. I'm running CM9 and am having the same problem. Thanks!

[Q] School WiFi issues

Hi, first of all, I have no idea where I am supposed to post this.
Anyway, I have a Nexus 7 FHD, and have been using it at school. My school has its own wifi, and I used to be able to connect to it perfectly fine, as I knew the password. It doesn't have any of that wifi login stuff. Recently, however, I think I've been blocked or something from it. I go to WiFi settings, and then my N7 sees the network. I know I have the correct password as my phone (d2vzw) can still connect to it. I click on it to connect, and then the network says connecting... but then after a while it goes back to the Saved, Secured with ... etc. This has been bothering me a lot, as I often need to research topics at school. I've tried spoofing my MAC address, but I don't think it works. If somebody could please help me solve this issue, it would be greatly appreciated!
P.S.- My friend also had this issue, and he's more tech savvy than I am. He was also blocked on his N7 (first gen) and tried changing his device name and mac, but I'm not sure either of us actually spoofed our mac addresses. The first time, both of us were blocked. Then, the wifi crashed, and we both regained access. Now, only I'm blocked, and then only reason I can think of for actually being blocked is attempting to start up orbot... which incidentally failed. Please help! Thanks!
The proper course of action would be to contact your network's admin and request that you be unblocked and take the lumps that come with the actions that caused you to be blocked. Trust me when I say that most system and network admins look very negatively on attempts to get around the security. (you'll only be digging your hole deeper)
Not all admins are the same but I base my opinion on my experiences as a network admin on a .mil network for 7 years YMMV but I know the mentality intimately.
You could use Bluetooth tethering to share the phones WIFI connection with the N7. Use the phone for the WIFI connection and then enable Bluetooth tethering. (If you don't know how, google 'android bluetooth tethering'.)
BTW, the DHCP requests on the WIFI to get your IP address contain a hostname besides the MAC address. You can change that using an adb shell or root terminal and running:
setprop net.hostname HOST_NAME_YOU_WANT
oldsoldier2003 said:
The proper course of action would be to contact your network's admin and request that you be unblocked and take the lumps that come with the actions that caused you to be blocked. Trust me when I say that most system and network admins look very negatively on attempts to get around the security. (you'll only be digging your hole deeper)
Not all admins are the same but I base my opinion on my experiences as a network admin on a .mil network for 7 years YMMV but I know the mentality intimately.
Click to expand...
Click to collapse
Thanks for the advice! But the thing is, I don't think students are supposed to be on the WiFi anyway lol. Someone found out the password, and now I guess close to 97% of the student body uses the WiFi. The teachers definitely know, but they haven't taken any action, so who knows. Anyway, I don't know who the admin is or have any clue how to contact him... soooo I'm out of luck haha.
tni.andro said:
You could use Bluetooth tethering to share the phones WIFI connection with the N7. Use the phone for the WIFI connection and then enable Bluetooth tethering. (If you don't know how, google 'android bluetooth tethering'.)
BTW, the DHCP requests on the WIFI to get your IP address contain a hostname besides the MAC address. You can change that using an adb shell or root terminal and running:
setprop net.hostname HOST_NAME_YOU_WANT
Click to expand...
Click to collapse
Hm, this sounds pretty interesting. Could you explain a little more in depth? or point me to a website or whatnot? That would be greatly appreciated, as I'm not that knowledgeable in the networking area. Would this "fix" be reversible?

Returned home from short trip, Wifi connects but does not function

As the title says, I didn't change anything about the phone's configuration when I was out, didn't download any new apps or change any settings that would interfere like this. No one else has changed my home network in my absence.
Nevertheless, most of my apps, such as Instagram, the Play Store, Twitter, Wikipedia, Chrome; almost all their requests time out. There seem to be short windows where data will load, and Instagram appears to load comments and post metadata, but no images. It's basically unusable. Occasionally an exclamation mark will pop up over my Wifi symbol in the notification center. Strangely, I can still reach my Steam and Battle.net authenticators, but the moment I try loading the Steam app, nothing comes up. It's like the device can only handle plaintext over Wifi.
All of the apps work fine over cellular data.
Also, there is a toast that appears whenever I restart my phone that says "Power On" that I've never noticed before. I was rooted using Xposed, the only modules I used were Snapprefs, Xinsta, Physical Button Music Control, and Greenify Experimental Features, all of which I uninstalled. The toast still appears with the latter two disabled. Only other rooted apps I had besides Xposed were Nova Launcher, Greenify, Busybox, and Root Checker Basic, all of which have been removed but Nova.
I am running 6.0.1 with the latest update.
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
AbanadonedFace said:
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
Click to expand...
Click to collapse
First, if you want to return your device because the 16gb model doesn't have enough space, go ahead.
If it is mostly because of this WiFi issue, I wouldn't return the device, it is almost certainly the case this is some configuration issue (possibly in concert with some Android bug) which can be resolved.
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
sfhub said:
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
Click to expand...
Click to collapse
I am 100% positive I am on my own home network and that I used the correct key. I'm not sure what you mean with regards to the rest of the 'config', I have always used the standard wifi configuration, just typed in my key and had it work.
sfhub said:
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Click to expand...
Click to collapse
I actually forget what it was called, it was under Settings>Wireless&Networks>More>VPN. There was one entry there with an icon. I forget the name of it, but the icon looked like a stock Google icon and I think it had google in the name. I am on Project Fi, not using any wifi assistant (at least not in Advanced Wi-Fi Settings), but when I tried to toggle that option on just now, something called "VpnDialogs" crashed, so I assume that VPN entry was that. But again, the assistant wasn't on.
sfhub said:
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Click to expand...
Click to collapse
I did, when I first googled this was one of the things I found, sadly it did not help.
sfhub said:
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
Click to expand...
Click to collapse
I don't use Bluetooth, and trying to toggle it off/on from the control center just gives me a repeated "unfortunately, Bluetooth Share has stopped" error message.
I have decided to get the 32GB 5X since I do want more storage, but since I would like to be able to root my phone again and use Xposed, I would still like to hear any other ideas you have for troubleshooting this problem in case it reoccurs.
I reflashed the latest update to see if that would fix it, no dice. When I send the 16GB model back I have to factory reset it anyway, so I suppose I'll know if that does it.
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
AbanadonedFace said:
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
Click to expand...
Click to collapse
It is easy to test if you have some network connection vs none.
In terminal or adb shell
ifconfig wlan0
ping www.google.com
1st command will tell you (among other things) if your wlan picked up an IP address.
2nd command will test whether you can send ping packets over your connection.
I'm sure there are millions of ways of doing the above, I just gave you one example.
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
AbanadonedFace said:
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
Click to expand...
Click to collapse
I've encountered something similar where the router runs out of NVRAM space because it has recorded too many DHCP clients, it won't hand out new IP addresses, but if you are existing or already have one, it is fine.

Wifi and mobile data issue after degoogling

I recently considered completely degoogling lineageos and i succeeded partly.
1. Changed the system webview to bromite webview.
2. Changed the captive portals to
https://e.foundation/net_204/
http://204.ecloud.global
3. And finally changed the timeserver to pool.ntp.org
One of these steps happened to screw up things with the wifi and mobile data.
Wifi works just fine but has a "Limited connection" label on it.
And mobile data doesnt seem to work at all.
Has anyone experienced something similar or knows the solution?
Thanks in advance for your help.
When you are on wifi, are you connecting to a router that has a custom DNS server? I get the same thing, works just fine. Scroll through your router logs and device logs to see what is times out and adjust accordingly.
I lost mobile data on a previous device (LG v20) when I moved over to LOS and was messing around with APN. Given that mobile data runs through provider's server, it might be that the server it being blocked by a content filter or similar. Also, it might be that LOS's list of default APN are not updated with current information required by your provider.
My device uses nextdns through private dns.
I was using vanilla lineageos with microg and mobile data worked fine, after these steps something seemed to have messed up. I have tried resetting APNs too, didnt work.
DNS of wifi doesnt typically affect that of LTE, but might be different in your flavor of LOS.
Look at your logs on router and device.
Private dns is DNS over TLS implementation of android, it works on both wifi and mobile data. I havent changed anything related to dns for a long time. DNS doesnt seem to be the problem.
systool sntpc -sntpRequest
I can see simple ntp client requests like this, should i be looking for something else?
I'm curious as to how many requests you are seeing. I seem to recall android should only check every few days. Hmm.
Checked logs on a rooted v20 stock N7.1 that I keep around for tv and Roku and Plex control. I wasn't able to find a ntp or sntp entry in last 7 days, the length of my log. Firewall did not report any port 123 traffic either.
Incidentally, I am using 3.android.pool.ntp.org to sync with. Not sure where that came from, I don't remember it as being such as I prefer time.nist.gov.
I don't know what could be going sideways with data other than perhaps dns not working ( does ip# work on mobile?) on mobile and degraded showing on wifi.
This may be pointless, but if wifi is turned off, are you able to send/receive a mms? I ask because mms traffic to your phone is based on IP#, but mms traffic from phone has to (typically) resolve name of mms server.
I am just about out of ideas / suggestions.
Thank you for our help mate, i fixed the issue.
Everything is back to normal after changing the captive portal to
http://captiveportal.kuketz.de
https://captiveportal.kuketz.de
The one from e foundation seemed to be the problem. This one is from a security researcher Mike Kuketz.
The captive portal wrecked mobile data too? That is surprising and interesting.
Glad to see you are up and running.
Side note, do you still see same amount of sntp activity now?
deleted

Categories

Resources