Use a specific DNS at home and 1.1.1.1 at everything else? - General Questions and Answers

I have a pi-hole adblocker at home (basically a DNS server that blocks ads). When I'm home and connected to my wifi, I want my phone to use my pi dns. This works fine if I use the default settings for wifi or if I set a static ip and declare it to use my pi. However, when I'm not on my home wifi, I would like both wifi and mobile data to use 1.1.1.1 dns. I have configured this is my phone's settings, but when I do, it also overrides my home wifi DNS settings. I can of course set 1.1.1.1 for all my other wifi networks, but I don't think it is possible to set it for mobile data. As of know I have two options:
1. Either I use 1.1.1.1 on everything.
2. I can use Pi hole at home but everything else uses my ISP's servers.
Is there a way so I can use my DNS at home on my home wifi and another DNS on all other networks?

Related

How to set DNS while using static IP over WiFi

I'm connecting with my HTC S710 to a WiFi with a static IP. The WiFi connection is set, I can ping other devices within the network but I can't view web pages and synchronize mails. I did lot of tests and I found that the problem is DNS! When I use IP address instead of www.something.com I can view the WWW site!
Does anybody know how to set DNS in my smartphone? DNS address is the same as gateway's in my case.
There's no possibility. Either you activate DHCP on your WiFi Gateway or you use a third party software that allows you to define WiFi profiles.
Does this one work for you? http://www.freewarepocketpc.net/ppc-download-wifi-profiles-v0-0-2.html (although it is originally designed for PPCs)
Hallo fwmone,
thanks for your post!
I have just installed the Wifi Profile program but it's for PPC so there are problems with filling in the right values. I hope I'll be able to figure out how to use it. Anyway the programmer is also Czech so I've wrote him an email asking whether he plans to build Smartphone version..
The wifi I connect to is a local provider and unfortunately he uses static IPs
I'm really surprised that Vox doesn't have such a simple thing like DNS manual settings.
Yeah, the static IP functionality is quite useless without the possibility to set a DNS server.
Means "local provider" you're using some type of wireless internet at home or is it at a location where you can't control the situation? As long as you're using the service at home, you might install a WAP that works as a repeater for the WAN and offers DHCP functionality.
Hi fwmone!
So the problem is solved! The application WiFi Profiles v0.0.5 helped. Despite it's for PPCs it is possible to use it and to set all network configuration including DNS. After applying the profile the connection works fine! GREAT!!
Thanks for your hint!
FYI: that local provider covers our street and I don't control the router/access point. But you're right WAP repeater would be also a solution.
Nice that it worked!

Captivate Wifi/3G data issue

Has anyone had a problem with the Captivate when in both WIFI and 3G coverage the phone will not download or open a webpage? If I shut off one or the other it works but if both are active it hangs up and doesnt download.
Is this by chance on an enterprise wifi access point? Such as one of those expensive cisco APs you find in schools and enterprise class networks? If so, there is currently a driver problem with the captivate connecting to it, but not trasnfering data. Whether the netwrok is encrypted or open doesnt seems to matter. Personally, I find this a bigger problem than the GPS issue. I had to use wifi static to manually set IP, subnet, etc. This is a workaround, not a fix.
jhannaman82 said:
Is this by chance on an enterprise wifi access point? Such as one of those expensive cisco APs you find in schools and enterprise class networks? If so, there is currently a driver problem with the captivate connecting to it, but not trasnfering data. Whether the netwrok is encrypted or open doesnt seems to matter. Personally, I find this a bigger problem than the GPS issue. I had to use wifi static to manually set IP, subnet, etc. This is a workaround, not a fix.
Click to expand...
Click to collapse
Hey, I think I'm running into this issue at my workplace (we definitely use those Cisco APs, I see them all around). I'm connected, I have an IP, but I can't browse anywhere.
Here's the weird thing though: I can connect to the company's wifi in any other building (I guess different APs?) than the one I'm in and wifi works fine. It's just the building my cubicle's in that doesn't work and it's infuriating!
well thats dumb.
I had that happen once since I bought the phone on launch. I restarted my phone and it went away.
I've had this problem as well, usually my phone switches to only wifi pretty quickly though, so I don't notice much. The phone acts like it is using the 3G connection because the arrows are both indicating data coming and going, but nothing actually happens unless only one or the other is on.
i need to check this at more places but at home i have a standard dlink dl-624 router with no security over comcast. i think my issue initially was because of the wifi sleep policy (see below) but now i am just getting really really slow speeds. pages seem to load slower than 3G....(i mean really cinemaxHD is showing last of the mohicans in pan and scan)....also the pages time out very very frequently.....
Anyone having problems check out the advanced setting for wifi. The phone has a WIFI sleep policy. my default setting was to disconnect from wifi after the screen locks. my screen locks after 30 seconds. so basically it always looking for my network. you can change it to never.
I want to reiterate our findings again. There are multiple threads on other forums concerning this as well. When it comes to wifi, the captivate has a major problem. DHCP does not work on enterprise networks. Period. It is a driver issue. The network can be open or using any form of encryption, the results are thr same. I had numerous software, hardware and network analyst tackling this issue all week in my department. It is related in part to most enterprise networks not using a default subnet mask of 255.255.255.0. There is a workaround, but it is not a fix. You can either set a static from your static pool of ip's in wifi settings, or, if u connect to multiple networks, use wifi static from the market to remember and apply seperate static configs accross multiple networks which is what were having to do currently. This affects all captivates, one which we consider a major problem with deploying this phone to our other users.
Sent from my SAMSUNG-SGH-I897 using XDA App
I had the same problem and this is how a turn around the problem when I'm connected but cannot browse.
-Use Wifi Static
- DNS from google 8.8.8.8,8.8.4.4
- switch to airplane mode
- activate wifi
- test my conection (open the browser and surf)
- switch to phone mode
Hope it help
floppy__ said:
I had the same problem and this is how a turn around the problem when I'm connected but cannot browse.
-Use Wifi Static
- DNS from google 8.8.8.8,8.8.4.4
- switch to airplane mode
- activate wifi
- test my conection (open the browser and surf)
- switch to phone mode
Hope it help
Click to expand...
Click to collapse
Did this, Wifi Static was being used previously to bypass dhcp, and it correctly assigned the IP settings, used the static I assigned from our static pool of addresses. Still no data transfer over Cisco APs at work.
jhannaman82 said:
Did this, Wifi Static was being used previously to bypass dhcp, and it correctly assigned the IP settings, used the static I assigned from our static pool of addresses. Still no data transfer over Cisco APs at work.
Click to expand...
Click to collapse
are you able to access a website thru his IP address? in this case it's a DNS problem, try the Google DNS 8.8.8.8 - 8.8.4.4
floppy__ said:
are you able to access a website thru his IP address? in this case it's a DNS problem, try the Google DNS 8.8.8.8 - 8.8.4.4
Click to expand...
Click to collapse
Its hit or miss really, seems the wifi radio stack locks up and stops responding according to our trace logs. yes i have tried both our internal DNS server's as well as googles. Everywhere else works perfectly. But at work with our Cisco open (no security) APs, it doesnt work most of the time. Through whos ip address??? I have a static set from our static pool to make sure dhcp was not the culprit. Its def the device, and not my netwrok. I have over 100 of these APs deployed here.
Wifi works great everywhere else (at home with WPA2, etc). There is def a problem with enterprise cisco APs.
Netmask issue and cisco AP's
Posted this over in development thread.
http://forum.xda-developers.com/showpost.php?p=7698066&postcount=410
Make sure your netmask is correct.
Thanks jhannaman82
I just wanted to give a big thanks to jhannaman82 for posting his company's findings with these wifi issues. My wifi works 100% at home on my linksys tomato router (of course, with a netmask 255.255.255.0). But on my college campus they use an enterprise router setup with 255.255.0.0 and I have been going NUTS trying to figure out if it is my captivate or the network.
I can sometimes get a few minutes of working connection, but it always seems to crap out within 1 or 2 minutes.
I will attempt to fiddle around with switching the dhcp to static IP, and will post my results. Thanks!
edit: no luck with static IP fiddling so far. from my laptop (connected wirelessly), I gathered that the netmask is actually 255.255.248.0... when I set my captivate's netmask to anything other than 255.255.0.0, it does not connect. It says "connected" when I set the netmask to 255.255.0.0, but as usual no data will transfer (it seems). I'm at a loss. *shrug* Hopefully there's a driver update or something.
Thanks jhannaman82!
I just wrote a script with the GScript app: "ifconfig eth0 netmask 255.255.255.0", and have a shortcut on homescreen. The problem was that the netmask was wrongly set to 255.255.0.0 on my office wifi. Now all I need to do is tap on this shortcut at office, and the connection works!
Has anyone contacted Samsung about this ?
I'm hoping this gets fixed soon... This refuses to stay connected at my school. Huge pain.
I entered in an IP address and 255.255.252.0 for my netmask after seeing what it was on my computer and turn on flight mode and tested the wifi and now it's working. I'm not sure if it's just one of those fluke connections that I get... but we'll see.

Manage WiFi connections

I have to use a static IP-address and proxy server with WiFi at mine work.
At home I use mine own wifi network, without proxy and DHCP.
Is there an app to store that settings for each WiFi connection?

How to set L2TP/IPSec PSK VPN easily on Android

I have created a L2TP VPN server. I want to use it easily on my phone. I know I can set VPN from Settings--> more --> vpn but it is not my favorite method. Because it is really annoying! I need a free simple application without advertisement to set my L2TP credentials and manage it from the app. The built in vpn configuration is really annoying; when I disconnect wifi I have to connect it manually, if I activate 'always on vpn' it disconnects with my wifi network up and down. I formerly used Psiphon with an HTTP server which I created. I need an app like Psiphon in order to set my L2TP configurations and manage it easily. I installed strongSwan but it does not support L2TP/IPSec PSK.

android 10 dont use Gateway from wlan

in my network at home is a fritzbox cable router with WLAN. i set DNS to a external DNS Server that is under my control. when i connect with laptops to the WLAN, i can see in the logs on the external DNS Service the requests from the laptop. now when i connect a mobile (android 10, samsung a71) to the wlan, i dont see any DNS requests to DNS Service... i use chrome on android. where are the dns requests routed to? and how can change settings that chrome on android connnected to my WKLAN , should use DNS Settings its get via DHCP from the wlan?
In my phone i see to setting/conn setting/more conn sett/ private dns.
Maybe help you.
Gray Foxx said:
In my phone i see to setting/conn setting/more conn sett/ private dns.
Maybe help you.
Click to expand...
Click to collapse
thats for crypting dns requests.
it seems android is not using the dns server from the wlan connection
Android shows your DNS server in your WiFi settings. Click your network and it should be listed somewhere.
Network's DNS server can be bypassed by private DNS settings. Make sure it's set to "off"
Chrome on Android also has an option to use custom DNS, but it's disabled by default AFAIK. Setting is located under Settings > Privacy and security > Use secure DNS. Make sure it's not set to "Choose another provider"
There's also a cool tool https://1.1.1.1/help which should show your DNS provider under "AS Name". Maybe compare results in this URL between your phone and laptop. They should be the same.

Categories

Resources