[Q] Why's my Droid using Google's DNS? - Nexus S Q&A, Help & Troubleshooting

I've just installed SSHDroid Pro on my phone and by SSH'ing into it I've come across some interesting DNS behaviour. I was having trouble visting one of my servers over my home WiFi with a hostname from DynDNS.org - the Nexus S can't find it and nslookup fails. But when I try it from a PC at home it's all fine.
# nslookup xxx.dyndns-remote.com
Server: 8.8.8.8
Address 1: 8.8.8.8
nslookup: can't resolve 'xxx.dyndns-remote.com'
How come my Nexus S is using these DNS settings? It should be getting its IP address from a DHCP server on my LAN, and the DNS settings handed out by DHCP certainly isn't Google's DNS. Is it hard coded into the Nexus S or something horrible like that?

philled said:
I've just installed SSHDroid Pro on my phone and by SSH'ing into it I've come across some interesting DNS behaviour. I was having trouble visting one of my servers over my home WiFi with a hostname from DynDNS.org - the Nexus S can't find it and nslookup fails. But when I try it from a PC at home it's all fine.
# nslookup xxx.dyndns-remote.com
Server: 8.8.8.8
Address 1: 8.8.8.8
nslookup: can't resolve 'xxx.dyndns-remote.com'
How come my Nexus S is using these DNS settings? It should be getting its IP address from a DHCP server on my LAN, and the DNS settings handed out by DHCP certainly isn't Google's DNS. Is it hard coded into the Nexus S or something horrible like that?
Click to expand...
Click to collapse
I think it may be one of the apps trying to get phone's IP for access.

Do you have your wifi set to never switch from wifi to mobile data while using wifi. If that isn't checked some phones switch back to mobile data.
Sent from my Nexus S 4G using XDA App

pierre1321 said:
Do you have your wifi set to never switch from wifi to mobile data while using wifi. If that isn't checked some phones switch back to mobile data.
Sent from my Nexus S 4G using XDA App
Click to expand...
Click to collapse
Where are those settings?
Sent from my Nexus S 4G using XDA App

obsanity said:
Where are those settings?
Sent from my Nexus S 4G using XDA App
Click to expand...
Click to collapse
Press menu while in wifi settings
Sent from my Nexus S 4G using Tapatalk

Yeah, just tap on sleep policy and select never.
dreamsforgotten said:
Press menu while in wifi settings
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
Sent from my Nexus S 4G using XDA App

pierre1321 said:
Do you have your wifi set to never switch from wifi to mobile data while using wifi. If that isn't checked some phones switch back to mobile
Click to expand...
Click to collapse
No, it's set to Never.

That's what i was asking you, not sure what else it could be.
philled said:
No, it's set to Never.
Click to expand...
Click to collapse
Sent from my Nexus S 4G using XDA App

I thought I had managed to resolve this but I haven't. If I connect to my WiFi and get a command line up in the Terminal app and run "nslookup machine.on.mylan" it shows me that it's using 8.8.8.8 as the DNS server. Surely it should be using the DNS server passed over in the DHCP settings when connected to the WiFi network? How do people connect their Android to machines on their private LAN if it can't use your own private DNS server?

Related

[Q] WiFi not catching

My dormitory has wireless connection.
My laptop catches WiFi (although it disconnects every once in awhile), but my Nexus S just never catches dormitory WiFi no matter how many times I scan them.
iPod Touch seems to work fine though.
Any clue?
It uses unsecured method, where one can connect without a router password, but one has to enter a school ID/password when you open any page on the browser because browser directs one to school log-in page.
My Nexus S catches school-wide WiFi no problem though. It's just the dormitory WiFi.
Thanks!
How strong is your signal?
I had this problem with my epic 4g once
Connect your computer to that network
Type in ipconfig on cmd prompt
Find your ip address
It should be across from gateway ip
type it in on any web browser
Your going to get a login screen
Type admin for password and leave username blank
Now there is going to be a bunch options now click factory reset or something like that and you should be good
Sent from my SPH-D700 using xda premium
gtuansdiamm said:
I had this problem with my epic 4g once
Connect your computer to that network
Type in ipconfig on cmd prompt
Find your ip address
It should be across from gateway ip
type it in on any web browser
Your going to get a login screen
Type admin for password and leave username blank
Now there is going to be a bunch options now click factory reset or something like that and you should be good
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I will try that tomorrow when I go back to my dorm. Sounds like a solution. Thanks!
Possibly related to this major Android bug Google has been ignoring for a year now:
http://code.google.com/p/android/is...rs&colspec=ID Type Status Owner Summary Stars
Sent from my Nexus S using XDA App
gtuansdiamm said:
I had this problem with my epic 4g once
Connect your computer to that network
Type in ipconfig on cmd prompt
Find your ip address
It should be across from gateway ip
type it in on any web browser
Your going to get a login screen
Type admin for password and leave username blank
Now there is going to be a bunch options now click factory reset or something like that and you should be good
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I just see 'a page not found' when I enter gateway ip address on the browser. I tried the ip4v and other numbers as well, but same results.

where is the resolv.conf

I'm trying to create a tunnel so that I could bypass my company proxy when connected to their WiFi .. I've managed to do that now the problem is the name resolution..
I know in Linux we have the /etc/resolv.conf to tell the system which DNS to use, I couldn't find the same file on our Atrix2. I've created one in /system/etc but I don't think the ROM is following that file ..
you can try proxydroid. It has DNS proxy option, which may works for you.
But if you just want to change DNS setting, you can manually configure static IP and DNS address in waln setting.
Sent from my MB865 using XDA
hmm .. I couldn't find how to configure IP and DNS manually on my WiFi setting ..
wods said:
But if you just want to change DNS setting, you can manually configure static IP and DNS address in waln setting.
Sent from my MB865 using XDA
Click to expand...
Click to collapse
ari197 said:
hmm .. I couldn't find how to configure IP and DNS manually on my WiFi setting ..
Click to expand...
Click to collapse
wireless - wireless settings - menu - advanced settings
hmm .. than it'll affect all wifi connection .. plus, I need to manually insert IP, Netmask and GWs .. all I want is to change the DNS ..
mtnlion said:
wireless - wireless settings - menu - advanced settings
Click to expand...
Click to collapse
You can try "DNS setting" app, it can input the dhcp IP address for you.
But I'm not sure if the name is right.
Sent from my MB865 using XDA
Thanks .. it works
I'm using "DNS Change" from the market ...
wods said:
You can try "DNS setting" app, it can input the dhcp IP address for you.
But I'm not sure if the name is right.
Sent from my MB865 using XDA
Click to expand...
Click to collapse

obtaining Ip address problem

Hi I recently updated my phone to i9300XXELKC and now I can't connect to my wifi network the phone stockes at obtaining ip then stops and tries again and when I put my phone on static ip it connects but there is a dns error when I use the browsers .
I thought this was the new rom's fault so I updated to XXELL5 but the problem remains . I hate this dhcp ip problem so plZzzzzz help me .
Might want to try the i9300 forums. These are for the Verizon SCH - I535 version.
BigErnM said:
Might want to try the i9300 forums. These are for the Verizon SCH - I535 version.
Click to expand...
Click to collapse
oops sorry I was in a rush cause I had an exam and I didn't notice
I had the same problem with my GS3, just set a static ip address and put them up address of your router in the DNS section, ie: if your router is 192.168.1.1 put that in the box. Best of luck!
Sent from my Verizon Galaxy S III using xda-premium
Static ip won't help, yes you can connect to wifi, but cannot get connection to internet. This is a bug of android, and ITs in Princeton univ. had some investigation. 412 should have fixed it
Sent from my HTC Z710e using xda premium

Change Wi-fi ip

Hello,
I'm using custom ROM (CanGalaxyS4 v3). When I connected my phone in my college then my ip is being 192.168.1.101
Unfortunately, this ip has banned in my college. If I want to use Wi-fi then I must have to change my ip.
is there any working way? I' tried couple of wifi change app but it;s not working.
Please help me guys. Thanks in advance.
HemZone said:
Hello,
I'm using custom ROM (CanGalaxyS4 v3). When I connected my phone in my college then my ip is being 192.168.1.101
Unfortunately, this ip has banned in my college. If I want to use Wi-fi then I must have to change my ip.
is there any working way? I' tried couple of wifi change app but it;s not working.
Please help me guys. Thanks in advance.
Click to expand...
Click to collapse
Just ask one of your friends weather their wifi is connecting or not. If yes. Just copy their IP address, that's what I do
Sent from my Micromax A110 using xda app-developers app
HemZone said:
Hello,
I'm using custom ROM (CanGalaxyS4 v3). When I connected my phone in my college then my ip is being 192.168.1.101
Unfortunately, this ip has banned in my college. If I want to use Wi-fi then I must have to change my ip.
is there any working way? I' tried couple of wifi change app but it;s not working.
Please help me guys. Thanks in advance.
Click to expand...
Click to collapse
Hi,
follow the below steps to change your wifi IP
go to wifi settings....
long press the college's network name to modify it
tick the option "show advanced options"
change "IP settings" from DHCP to static
then change your IP from the option "IP address"....try changing the last no. 101 to something else.....
save the settings....DONE !!!
ashishk87 said:
Hi,
follow the below steps to change your wifi IP
go to wifi settings....
long press the college's network name to modify it
tick the option "show advanced options"
change "IP settings" from DHCP to static
then change your IP from the option "IP address"....try changing the last no. 101 to something else.....
save the settings....DONE !!!
Click to expand...
Click to collapse
Thanks a lot :good:

[Q] OpenVPN on TMobile LTE

I can't get OpenVPN client to work on my Nexus 5 when on Tmobile's LTE connection. Works just fine when on WiFi, but when on LTE it just sits waiting for server. My Nexus 4 on the other hand is working just fine on both WiFi and TMO LTE (it's rooted with LTE enabled). Anyone else has this problem?
Thanks in advance.
If anyone cares, I figured out what's the cause of it. By default Tmo LTE uses IPv6 and OpenVPN has a problem with it (or my vpn server). Changing to IPv4 solves the problem.
fiberangel said:
If anyone cares, I figured out what's the cause of it. By default Tmo LTE uses IPv6 and OpenVPN has a problem with it (or my vpn server). Changing to IPv4 solves the problem.
Click to expand...
Click to collapse
hi there, this was the exact problem i was having today, thanks for posting about it. i assume you're using the openvpn connect on your nexus 5, right? how do you disable ipv6?
catpunt said:
hi there, this was the exact problem i was having today, thanks for posting about it. i assume you're using the openvpn connect on your nexus 5, right? how do you disable ipv6?
Click to expand...
Click to collapse
go to the APN settings (Settings-> More-> Mobile Networks-> Access Points NAmes -> click on the entry that is selected (should be the T-mobile GPRS fast.t-mobile.com)
scroll down, change APN protocl to ipv4
then save
Why would you need a VPN for on cellular can it bypass the throttle?
Sent from my Nexus 5 using Tapatalk
paperWastage said:
go to the APN settings (Settings-> More-> Mobile Networks-> Access Points NAmes -> click on the entry that is selected (should be the T-mobile GPRS fast.t-mobile.com)
scroll down, change APN protocl to ipv4
then save
Click to expand...
Click to collapse
Thanks a bunch, that does indeed fix the problem with OpenVPN running on DD-WRT.
@markdapimp Security, all of your traffic will be encrypted and originate from your VPN's network
catpunt said:
Thanks a bunch, that does indeed fix the problem with OpenVPN running on DD-WRT.
@markdapimp Security, all of your traffic will be encrypted and originate from your VPN's network
Click to expand...
Click to collapse
Yes but can you trust your VPN provider and even then if you trust them do you trust your VPN Providers Datacenter and if you trust your VPN provider's data center can you trust their network connections.

Categories

Resources