[Q] Samsung Galaxy S2 not resolving particular host names to IP - Galaxy S II Q&A, Help & Troubleshooting

Hi, guys, here's my problem.
My Galaxy S2 using my own WiFi is unable to retrieve some content from web. This content is:
apps icons in Android Market,
Picasa images,
Accuweather forecasts
and some others.
Other devices using the same WiFi has no problems with it. S2 switched to other ISP than my WiFI also has no problems with it.
While trying to narrow possible causes I've picked an example image, which is problematic to my S2+WiFI combination:
https://lh3.ggpht.com/NpoJbnyQbI1kEIlrWhP_t7lj9lN519RkPB3mxQS2z6pTFjh01R3ISeyYnj4AccBSsQ=w788 (an icon of an app from Adroid Maret, remove space from url).
It won't open on my phone using WiFi, so I checked host availability. I've run on my phone following command:
Code:
[email protected]:/ $ ping lh3.ggpht.com
ping: unknown host lh3.ggpht.com
But on my PC using the very same WiFi:
Code:
C:\Users\Grzegorz>ping lh3.ggpht.com
Badanie photos-ugc.l.google.com [173.194.70.132] z 32 bajtami danych:
Odpowiedź z 173.194.70.132: bajtów=32 czas=27ms TTL=47
Odpowiedź z 173.194.70.132: bajtów=32 czas=25ms TTL=47
I'm stuck, what should I do now?

Have you any ad blockers or DNS stuff running ???
jje

Nope, it's clean Android 4.0.3.

Echo request for lh3.ggpht.com on your phone does not work. On your PC you get a response from 173.194.70.132. Just to make sure your problem is related to DNS (and not to some lower service): did you try to ping the IP address 173.194.70.132 from your phone? Do you get a response?

Yes, the host is reachable from phone using IP dot address, only name resolving does not work.

Ok, looks definitely like some DNS problem. As you already confirmed that your hosts file is fine the only thing I can imagine is your phone using some 'wrong' DNS server for address lookup.
To make (almost) sure you use a set of different DNS servers you could disconnect your phone from the wifi and enable a 3G data connection. Make absolutely sure you are not connected to your wifi. Now again run 'ping lh3.ggpht.com'; do you get a response?

Yes, that is the case.
Another weird thing is that phone on 3G resolves lh3.ggpht.com as 173.194.35.139, while PC on WiFi as 209.85.148.132. My 'hosts' file contains only localhost reference.
When I switch to WiFi while pinging that host, pings keep successful, unless I restart terminal session — after that I get 'unknown host' message.
Is there DNS configuration in Android somewhere?

OK, it seems I fixed it.
My WiFi works in a bigger subnet and hides all connected WiFi devices as as single computer.
I've installed on my Phone app called Set DNS from former Android Market, which allowed me to change both primary and secondary DNS. Initally both addresses were pointing to WiFi router itself which seems to work fine for my PC. I've changed it to DNSes of that bigger subnet I'm connected to. And it did the trick. Hopefully it won't mess settings for other WiFis I use to connect.
Thanks for showing me right direction!

Related

[Q] redirect exchange traffic on corporate wifi

Hi,
I'm trying to get my corporate Exchange mail to work on the internal wifi network at work.
Through 3G and wifi at home it works without problems, but on the internal wifi network the host webmail.mycompany.nl cannot be reached.
The reason that it cannot be reached is that the address webmail.mycompany.nl is a public IP address so the traffic wants to follow this route:
phone -> wifi accesspoint -> router -> firewall -> internet -> firewall -> exchange server
Of course the traffic ends at "internet" because you cannot go out and back into the firewall to reach an internal host.
We have several iPhone users at work that can use our internal proxyserver for the corporate wifi and get redirected through the proxy server (ms isa 2006)to the internal mailserver when they connect with webmail.mycompany.nl, but as we all know Android doesn't allow setting/using a proxy for a specific wifi connection and all programs.
Of course I've been promoting Android and mocking iOS since I got this new phone, but this issue seems to bite me in the *** atm
I tried using the ProxyDroid and AutoProxy apps to force connections through the proxyserver, but I cannot get the mail traffic to follow the route through the proxy (the phone still resolves webmail.mycompany.nl with the public ip address).
Of course I could edit the hosts file to make this work, but that would break the Exchange email when I'm not at work.
Is there a way/app to trick the phone when it is on the internal network to connect to the internal mailserver directly?
I know I could set up a second account sync but I'm afraid that would duplicate all my meetings/contacts/mails.
Phone:
Rooted Galaxy S2 with Android 2.3.6
Thanks in advance!
Regards,
Jeroen
hey could u tell me one thing .. autoproxy app is working on ur galaxy s2 rooted ???
Well it seems to do something, but not all I expected.
I can see my (stock) webbrowser traffic go through the ISA server when I run the monitoring on it, but all traffic is anonymous instead of using the NTLM credentials I provided in the proxy app.
Same happened with ProxyDroid.
Sent from my GT-I9100 using XDA App
i mean that autoproxy is working on other apps like facebook market etc etc ?????
Not sure, will have to test that.
Will get back on it.
Sent from my GT-I9100 using XDA App
Doesnt work for market/fb for me. Only the browser.
Sent from my GT-I9100 using XDA App
We have an almost identical issue with our Motorola RAZRs running Android 2.3.5. Accessing our internal Exchange 2010 server with ActiveSync works great through the 3G/4G connection as well as through Wifi when connected to another Wifi network (such as at home). However, when these devices are connected to our corporate wifi network, we get errors in the Corporate Sync app that it cannot connect to the server.
We somewhat resolved this issue by creating a DNS record in our internal DNS servers to point to the internal address of the Exchange server. In the morning when we first come in to the office, if the wifi is turned on it will not be able to connect to the server until the phone is rebooted. Once it has rebooted with wifi turned on, it works great the rest of the day. If the phone loses the wifi connection for a period of time or someone leaves the office and comes back, it again will not connect and a reboot will bring the connection back.
I have installed a DNS lookup app on the phone and while connected to the corporate wifi it correctly resolves the webmail.company.com to the correct internal address. To me it appears that something related to the Corporate Sync app is caching addresses somewhere. We have four RAZRs that all exhibit the same issue. Our other Android phones seem to have no issue with this.
Motorola RAZR - OS: 2.3.5
Exchange 2010
Wish I could fix it by creating a dns entry on our corporate dns servers, but doing so will mean creating a zone for our external domain which will cause a lot more problems than my phone not syncing over wifi ;-)
Sent from my GT-I9100 using XDA App
Ok I just found the solution for my problem here:
http://serverfault.com/questions/13...use-hosts-file-to-resolve-specific-host-names
What I did:
I created a dns zone just for webmail.mycompany.nl with an unnamed A record with the internal IP.
Now all systems that use the internal dns servers (which my phone does when connected to wifi) resolve webmail.mycompany.nl (and only that address so no other mycompany.nl addresses) with the internal address
Edit: I might now run into jaredcochran's issue with the caching of dns names from the 3G connection, but I'm willing to give my phone a quick reboot if needed when I get in the office. Will see tomorrow morning...
laggetjeuh said:
What I did:
I created a dns zone just for webmail.mycompany.nl with an unnamed A record with the internal IP.
Now all systems that use the internal dns servers (which my phone does when connected to wifi) resolve webmail.mycompany.nl (and only that address so no other mycompany.nl addresses) with the internal address
Edit: I might now run into jaredcochran's issue with the caching of dns names from the 3G connection, but I'm willing to give my phone a quick reboot if needed when I get in the office. Will see tomorrow morning...
Click to expand...
Click to collapse
That's exactly what we did. Glad to hear that it worked for you.
Yeah thanks for your post which got me googling in the right direction
Curious how the s2 handles the dns cache issue...
Sent from my GT-I9100 using XDA App
Seems like the s2 has no issues with caching. As soon as I was connected to wifi it worked!
Sent from my GT-I9100 using XDA App

[Xperia S] WiFi loosing default route since ICS upgrade

Sorry to bother you with this, but I could not find anything remotely similar discussed anywhere.
My Sony Xperia S sometimes loses the default route for internet access.
The symptoms are:
- I can access all the local computers on the network just fine
- external web sites do not work
What I see when checking on the command line via "ip route" is
Code:
192.168.0.1 dev wlan0 scope link
Luckily my phone is rooted so I can just "su" and then
Code:
ip route add default via 192.168.0.1 dev wlan0
Afterwards, the internet access is working again for some time.
WiFI settings are set to a static IP address 192.168.0.11 with the default gateway configured to 192.168.0.1.
Why is the device losing the default route?
How can I prevent this?
Is there a file somewhere that needs to be changed for the route to persist?
I did not have this problem with Gingerbread. It started after upgrading to ICS.
Laptops work fine on the same WiFi network and do not lose internet access.
<Princess Leia voice>Please, XDAdevelopers, you are my last hope.</Princess Leia voice>
I'm having the same issue with my S after rooting/updating to ICE WIFI is still connected and LAN works ok, but no internet access turning WIFI on and off is the only way i can get it working
hope the is a fix
Sounds similar to an issue I was having as well. Actually, I was having it prior to the ICS update as well, i.e. with GB.
The only way I found to reliably get internet access on my SXS was to reconfigure my router to use DHCP, which was somewhat annoying. Had to reconfigure all my network nodes as well, of course, which were using static IPs.
Static IP had never been an issue with my old HTC Desire running GB (and earlier versions) or my ASUS Transformer with Honeycomb and ICS. Definitely seems to be SXS-specific.
I do not want to work through the hassle of changing the settings in my more than 20 devices on the network just to get this one working reliably.
Is there no other way than to switch on DHCP?
I tried DHCP and it didn't work for me.
and just because use run DHCP doesn't mean you would have to change all you devices, you can leave then as static.
I've been having the same issue on mine - did it occasionally on Gingerbread but has been noticeably worse on ICS - turning WiFi off then on again cures it 60% of the time, three off/on combos sorts it's 95% of the time
I noticed this week while visiting my parents that it worked first time every time, of course this is a DHCP setup!
I'll be setting my home router to give a fixed IP to my phone tonight - but that doesn't help at work where I need to override the DNS settings (don't care if the IP is dynamic or not - just need to use different DNS servers*!).
* And yup I have permission to do so - Facebook and a few others are crudely blocked using DNS, but authorised people are allowed access (basically so we can delete nasty posts) and this is over-ridden using static IP - gets annoying that Facebook trashes my authorisation when it falls in this blackhole.

[Q] Help with VPN with Mac 10.8 OS X Server

I have a Mac mini running OS X 10.8.2 with the OS X Server 2.2.1 from the app store, and I have set up the VPN using L2TP in the Server.app interface. I have tested this VPN connection using a Macbook, which works, but I can't figure out how to get Android's built-in VPN to work.
Current set-up:
I have opened ports 500, 1701, 1723, and 4500 on my router.
I am using a dynamic DNS from no-ip.com, we'll say hostname.no-ip.org
I have set a "Shared Secret", we'll say 1234567890
I have set up an account for my android phone on the server, let's say the user name is "nexus" and the password is "google"
On the Macbook, I simply use the DNS, the secret, and credentials that I have set up on the server, and it connects.
On my Android device (Nexus 4 4.2.2) I am using the following settings:
Name: Mac Server
Type: L2TP/IPSec PSK
Server address: hostname.no-ip.org
LT2TP secret: (not used)
IPSec identifier: (not used)
IPSec pre-shared key: 1234567890
When I try to connect using these settings, it prompts for the username and password, so I enter "nexus" and "google". It sits there saying "Connecting..." for maybe 30 seconds and then it just goes back to "Disconnected" with no error or other message. I have also tried putting the "Shared Secret" in the L2TP secret field, but with the same result.
Is the built-in Android VPN simply incompatible with OS X Server's VPN? Or have I misconfigured something?
Note: I would strongly prefer to continue using L2TP, and not the less-secure PPTP VPN
Ok, so I have managed to connect to the VPN when doing it INSIDE the network to the IP of the server (lets say 192.168.1.2). If I change the address to hostname.no-ip.org it won't connect, although it is working for everything else (such as web, etc).
I have tried on my iPad and I can connect just fine either from inside the network or over 3G connection.
On the Nexus I have tried to change the hostname.no-ip.org to my public IP address but it will not work either.
The funny thing is that when I try to make it work outside the server, the mac server log will show nothing, while every other test I run it logs it perfectly.
I think something is very broken in the way VPN is implemented in Android. Am I the only one finding himself in this situation?
....your missing a very large part.....
FORWARD YOUR PORTS ON YOUR ROUTER
Also in your router look for anything relating to VPN.
Also some routers will not alow you to conect from the external ip internally. I hate routers like that..
and why run osx server on a macbook?
if you want a secure home vpn, go find a old windows computer any p4 will do and install linux and install vpn services on it.

[Q] Cant get to connect to samba shared disk

I cant connect nor find my samba network drive from Android whatsover... I have tried using different apps (ES File Explorer, AndroXplorer and AndSMB), but none of them are able to connect nor to find my shared folders....
On the android client side, I am using anonymous login and I have tried using both the ip address of the samba server in the hostname field and the hostname itself. I also tried with the domain set or empty. I have a Galaxy Nexus with Android 4.2.1
On the server side, I have the following configuration ( add V0BRW3vK to pastebin address -> sorry I cant post links) and I can access it through windows, ubuntu and even through my playstation =D But not with my android device... Therefore, I dont think it is a server issue (unless if Android connects in a different way).
It is also perhaps worth mentioning that my samba server has a static IP and it is not on the DHCP list of the router. However, Im not sure if this should influence something as I'm even trying to access it directly through its IP.
Is there something I need to do in the android device beforehand in order to connect to the network drive? Any hints of what could be going wrong? Most of the issues, I read about it seem to handled in my config and have been discarded due to the fact that I can connect to the shared folder with other devices. The only other thing that comes to my mind now is to either find an open source application that connects to a samba shared folder and run it with logging (and get more info about it), or to develop one =S
Use this tutorial, worked for me:
http://www.techrepublic.com/blog/ta...roid-to-windows-and-samba-shared-directories/
I've done it without success.
The phone does not see the networked pc (fig C of the tutorial) and even after filling the details (fig D), I cant see the shared folder.
problem with port
it was actually something related to the ports. I had some conflicting rules on my firewall which I think it was allowing just TCP and on ipv4 local ips on the 445 port, and denying the rest. After I got a cleaner port filtering configuration it worked.

[Q] Virus/Malware: Download Flash Player on Google sites

Hi,
I am on Android 4.0.4 Cyanogen Mod. Recently, whenever I open google.com or any google website, I get this popup that asks me to download Flash Player and redirect me to some website that has a link to download. It basically blocks all the routes to google related websites.
This is exactly the same issue described here: bleepingcomputer.com/forums/t/526069/warning-your-flash-player-may-be-out-of-date-redirect-on-both-pc-and-tablet but the solution is basically for a Windows machine.
After this started to happen, I:
1. cleared all applications cache data
2. Installed AVG antivirus and scanned the phone
This does not seem to be a problem with router because there I do not see the problems on computers and phones connected to the same router.
Can someone help me to solve this problem?
Attached is the screenshot.
Thanks
PS: I cannot post a link yet, so I removed the protocol and www prefix.
naishe said:
Hi,
I am on Android 4.0.4 Cyanogen Mod. Recently, whenever I open google.com or any google website, I get this popup that asks me to download Flash Player and redirect me to some website that has a link to download. It basically blocks all the routes to google related websites.
This is exactly the same issue described here: bleepingcomputer.com/forums/t/526069/warning-your-flash-player-may-be-out-of-date-redirect-on-both-pc-and-tablet but the solution is basically for a Windows machine.
After this started to happen, I:
1. cleared all applications cache data
2. Installed AVG antivirus and scanned the phone
This does not seem to be a problem with router because there I do not see the problems on computers and phones connected to the same router.
Can someone help me to solve this problem?
Attached is the screenshot.
Thanks
PS: I cannot post a link yet, so I removed the protocol and www prefix.
Click to expand...
Click to collapse
I have the exact same issue as above. I am on 4.4.2 (CM v. 11-20140405-SNAPSHOT-M5-i9300)
What I observed is, when I am connected to my home wireless, neither the internet browsing works nor the play store. But when I shift to 3G, my play store works but with the browser I still get that flash warning.
I have not got any information from elsewhere how to fix it (on phone).
naishe said:
Hi,
I am on Android 4.0.4 Cyanogen Mod. Recently, whenever I open google.com or any google website, I get this popup that asks me to download Flash Player and redirect me to some website that has a link to download. It basically blocks all the routes to google related websites.
This is exactly the same issue described here: bleepingcomputer.com/forums/t/526069/warning-your-flash-player-may-be-out-of-date-redirect-on-both-pc-and-tablet but the solution is basically for a Windows machine.
After this started to happen, I:
1. cleared all applications cache data
2. Installed AVG antivirus and scanned the phone
This does not seem to be a problem with router because there I do not see the problems on computers and phones connected to the same router.
Can someone help me to solve this problem?
Attached is the screenshot.
Thanks
PS: I cannot post a link yet, so I removed the protocol and www prefix.
Click to expand...
Click to collapse
I think it is a virüs and your system is effected. Maybe there is easy way to fix that problem but i suggest you to backup your datas and make full wipe (system, data, cache) and install your rom. For me it is definitely solution.
I think I got the problem when another computer connected to the router got the same issue.
Basically, my modem/router was bugged. There is a virus that performs DNS injection. DNS of my network adapter had been changed to 68.168.98.196, which in turn was redirecting all the traffic from my devices to the attacker's website.
So, I called the phone company and got the modem reset. Updated the settings. The problem was fixed.
If you have the same problem,
1. Check the DNS setting in your modem/router. You may need to log into the router gateway like HTTP : / / 192.168.1.1 or something.
2. If it is 68.168.98.196, you will have to reset the router.
3. Note that if you are bugged, you might not log into the router though. So, you cannot see the DNS. Probably, you should probably check in your system. For example, I do this Ubuntu,
Code:
~$ nm-tool | grep DNS
DNS: 192.168.1.1
DNS: 125.22.47.125
DNS: 125.22.47.100
DNS: 8.8.8.8
4. Reset the router. Before you start doing that make sure you have all the information, id and password for your connection provided by the ISP.
Once this is done, you can see Google and sister websites load pretty well.
naishe said:
I think I got the problem when another computer connected to the router got the same issue.
Basically, my modem/router was bugged. There is a virus that performs DNS injection. DNS of my network adapter had been changed to 68.168.98.196, which in turn was redirecting all the traffic from my devices to the attacker's website.
So, I called the phone company and got the modem reset. Updated the settings. The problem was fixed.
If you have the same problem,
1. Check the DNS setting in your modem/router. You may need to log into the router gateway like HTTP : / / 192.168.1.1 or something.
2. If it is 68.168.98.196, you will have to reset the router.
3. Note that if you are bugged, you might not log into the router though. So, you cannot see the DNS. Probably, you should probably check in your system. For example, I do this Ubuntu,
Code:
~$ nm-tool | grep DNS
DNS: 192.168.1.1
DNS: 125.22.47.125
DNS: 125.22.47.100
DNS: 8.8.8.8
4. Reset the router. Before you start doing that make sure you have all the information, id and password for your connection provided by the ISP.
Once this is done, you can see Google and sister websites load pretty well.
Click to expand...
Click to collapse
I think you nailed it down. Indeed my wireless router (which is physically connected to my ISP's modem) had one of the DNS set to 68.168.98.196. I now changed them manually to google DNS servers, had my phone forget the network and added it again. Looks like it is working for me too..
Thanks a lot for posting it! I will update here if I see the issue again or anything else indicating similar issue.
This malware affects routers and not devices
to solve this try to reset your router

Categories

Resources