[Q] open dns on apn setting - LG Optimus 2x

any ways of setting up open dns for apn setting and make it stays?

Try search apps like 'setDNS.apk'..

never use opendns on APN. isn't that opendns for computer or gateway if you want to block nasty websites on your company or home??
and in handphone i think it's no use to set your dns to opendns cause it's your personal device right?

OpenDNS is like any other DNS server, only with tons of options.

You can run in the terminal (as root)
Code:
# setprop net.dns1 208.67.222.222
and/or
Code:
# setprop net.rmnet0.dns1 208.67.222.222
but you will have to do it everytime the connection restarts and Script Manager can help you with that

dabl8 said:
but you will have to do it everytime the connection restarts and Script Manager can help you with that
Click to expand...
Click to collapse
oh just get setDNS like the original poster said. i have got it on my phone at the moment and have got the DNS set to openDNS. this for one makes the new market open 5 or 6 seconds faster than before - thats not my work, i got that off a post off here btw.

Related

different tcpip settings per wireless network

Has anyone found an easy work around for having different ip settings per wireless network? By default you can either have static or dhcp for all connections, you cant set this per ssid.
I found this but looks like it has just been sitting there since 2008
http://code.google.com/p/android/issues/detail?id=1215
I was thinking about starting to look at the system files to see if there was a way to edit the connections via a config file like a typical linux workstation, but not sure if the ssid and other wireless profile info is stored within android or in the system files...
basically I just want to set my own ip and dns server addresses when when I am connected to a particular ssid.
as a side note, xda search is terrible....it makes you wait 30 seconds between searches...
hmm, is it odd to have the below entries in the resolv.conf? or are the 8s used for something within android?
nameserver 8.8.8.8
nameserver 8.8.4.4
Is that Static Wifi app working for you?
I was looking for a similar solution but since I only had 1 problematic location just toggling the static IP setting on and off is taking care of my problem.
The static wifi app looks like you can do multiple locations and just select from a list.
hmm, wifi static looks promising, will try that out, from what i had read people thought it didnt set the settings based off of the access point, but it clearly has those settings...
disgustip8ted said:
hmm, is it odd to have the below entries in the resolv.conf? or are the 8s used for something within android?
nameserver 8.8.8.8
nameserver 8.8.4.4
Click to expand...
Click to collapse
Those are Google's OpenDNS servers. They're main nameservers for the internet.
haha yeah i just realized that like 15 minutes ago lol

[Q] Custom DNS setting for 3G/WiFi

Is it possible to set DNS settings? I'd like to use Google DNS or OpenDNS instead of my providers DNS.
I am also looking for an answer to this.. You should have posted in q & a section though.
Sent from my GT-I9000 using XDA App
I was also wondering this...
I know you can definitely do it on Wifi by going into the Advanced setup of Wifi networks under Settings -> Wireless & Network -> Wi-fi settings -> Select Left selection button and then selecting Advanced.
Can't find it in the APN area though, so not sure how to do it for the cellular connection.
I also would like to know this..
count me in, i've been wanting to do that for a while.
i prefer openDNS
Hi all,
I also have been in this search and somewhere in the forums I have read that it is only possible to set this preference via setprop command. However this setting is lost in a reset and can not be modified permanently.
People were swearing to Google for hiding this option.
Regards.
aegeuss said:
Hi all,
I also have been in this search and somewhere in the forums I have read that it is only possible to set this preference via setprop command. However this setting is lost in a reset and can not be modified permanently.
People were swearing to Google for hiding this option.
Regards.
Click to expand...
Click to collapse
I've found these but I have no idea how to make use of it:
1:
* Android using OS (eg, Linux) network directly, but handle DNS directly.
* DNS lookup order follows
1. /system/etc/hosts lookup
2. system_property [net.eth0.dns1]
* system_property is provided android init process using unix domain socket @property_service
* You should run "init" process for network management.
* You should set up DNS 'net.eth0.dns1' using "/system/bin/setprop", "/etc/default.prop", "/data/local.prob"
2:
Force use of Orange DNS in the ip-up script located in /system/etc/ppp :
/system/bin/setprop "net.gprs.dns1" "194.051.003.056"

[Q] How to set Proxy on Nexus One Gingerbread 2.3.3?

Hi all,
I need to access my campus internet through wifi. It has a given proxy adress and port. How can I access it using my unrooted nexus one?.....
Thanks,
Android does not natively support a non-transparent proxy.
GldRush98 said:
Android does not natively support a non-transparent proxy.
Click to expand...
Click to collapse
I see. So, I have no choice but to root my phone to use the proxy....
Previously I used the Firefox mobile browser to bypass proxy settings. However, the only application you can use on your phone is the Firefox browser itself.
# Run Firefox, and in address bar type: about:config. This will take you to the advanced configuration panel.
# Now you need to find proxy entries, to simplify that you can filter it out by typing proxy in the field below address bar.
# Modify network.proxy.http and network.proxy.http_port to your proxy server and port.
# Set network.proxy.type value to 1.
I am not sure if this still works but give it a try.
eky said:
I see. So, I have no choice but to root my phone to use the proxy....
Click to expand...
Click to collapse
Yeah... or as madballs (lol) posted, you can try the Firefox beta. But keep in mind, on Firefox will work... no other data services on the phone will.
It is kind of crappy they don't support it, especially when there are other roms out there that have this little function added in.
LOL, I was surprised nobody has taken this name when I registered.
I really cant understand ,, if they could add proxy settings to the browsers without rooting,,
why don't the developers add it in their apps?!?!
Go to the wifi settings there push the menu button and select advanced.
now you have a list within you can set your proxy settings over the current wifi connection.
I have tested it with my DHD at work. works perfect but hope they will connect to the same concept for proxy as by android 3.2.
There you can configure a proxy for each connection.
Cheers
Dave
And sorry for english skills...

VPN + Hotspot = AWESOME!

Ok so a while back I discovered that after you gain root access to the BIONIC (probably works with other too. idk...) you can make changes to iptables. For those who don't know what that is: It's a built in firewall that handles packets as they come in and leave your phone. This is pretty much the defacto standard for any Linux machine to date (please enlighten me if I'm wrong). Anyhow, after discovering this I came up with an idea to see if I could pipe my hotspot directly into my openvpn tunnel. Well, after a bit of web research on how iptables works I was able to get it up and running. HOWEVER I'm not an expert at this yet, and my config definitely has a flaw in the fact that I leave the phone completely vulnerable on the "rmnetX" interface, as I completely flush the old tables to add mine, leavign the firewall WIDE OPEN. I'll post a fix as soon as I can come up with one. In the mean time here's the steps to take to get your phone to be a hotspot access point to your openvpn network!
**PHONE MUST HAVE ROOT!!!!***
1) Follow along and setup an OpenVPN server http://openvpn.net/howto.html
2) Install "OpenVPN Installer" and "OpenVPN settings" from Google Play marketplace (both are free)
3) Run OpenVPN Installer and install OpenVPN client to your phone. The defaults should be fine.
4) Create a folder called "openvpn" ont he root of your INTERNAL sdcard. IE "/sdcard/openvpn
5) Copy your client keys that you made during your OpenVPN setup to your phone into the /sdcard/openvpn directory (client.crt, client.key, ca.crt, and ta.key)
6) Copy over the client.conf file as well. You will need to tweek this a bit to call your certs from the /sdcard/openvpn file as well as putting in the public IP to connect to. Keep in mind if you are doing this at home you will need to PAT/NAT this connection accross your firewall on udp port 1194.
7)Ok, at this point you just want to make sure your OpenVPN connection works. So open up OpenVPN settings and try and connect to your VPN, if you can connect and brows to shares inside your network over the 4g connection EXCELENT! MOVE ON! If not refer to the OpenVPN HOW TO!!!
8) After that's done you neet to get the Verizon HotSpot Tether working, There's a hack for it on the web. Google "BIONIC Hotspot SQLite Editor"... in the mean time I'll try and walk you through it.
a) get SQLite Editor from Google Play
b) open it and scroll down to "Settings Storage" (the one with the hammer icon), open "settings.db", then click settings. You should see a long list of database entries. Click the magnifying glass and under "Filter Value" type "check".
c) you should then see 4 results, one being "entitlement_check". Long press on the "1" next to "entitlement_check". Click "Edit Field" and change the "1" to a "0".
d) Reboot and try running the stock "Hotspot" app, it should work now!
9) Run the Hotspot app and confirm it works properly and can connect clients.
10) After you have a working Hotspot and a work OpenVPN you can then start the iptables magic!!!
**This is fairly safe, no need to worry about bricking just reboot if you screw up!***
11) Download and install "Android Terminal Emulator" and run it.
12) at the prompt type in "su" to gain super user access
13) you should now be at a root shell ("#") NOT $
14) at the prompt(#) type this: iptables -S <-This shows you the entire iptables rules, as you can see it's crazy complicated!
15) Run OpenVPN and Hotspot and confirm both are connected and runnign before issuing rule changes in iptables. So run both applications now.
16) Confirm VPN is connected and Hotspot is runnign by issuing the command "busybox ifconfig". If your VPN is up you will have a "tun0" interface and if the Hotspot is up there should be a "wlan1" interface.
17) If both are up then all you need to do in order to give hotspot clients access to your VPN resources is this:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -A FORWARD -i tun0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan1 -o tun0 -m state --state INVALID -j DROP
iptables -A FORWARD -i wlan1 -o tun0 -j ACCEPT
The first 10 commands flush your old iptables, and the last 3 commands masqarade your wlan1 interface to your tun0 interface, funneling your clients down the VPN. Keep in mind that you will have to allow this via your openvpn server.conf file. See HOWTO For OpenVPN.
Enjoy!!!
I am confused and would like to know why we want net on VPN if we have WiFi hack for a router
Could Could we link a com port on bochs emulated windows xp?
With the WiFi hack edit or tether for root user you can use this IP addr add like below to add router capabilities, or change wlan0 to your phone's 4g rmnet or tun0 to add router to any connection, can you tell us what we would use VPN for give an example
su
ip addr add 192.168.1.0/24 dev wlan0
http://www.filedropper.com/comgooglecodeandroidwifitether-1
I use this apk to wifi tether, same as wifi router, will probably need root to use it I am not sure, but you dont need to type: ip addr add 192168.1.0/24 dev wlan0, I do just because it helps make good connections for most wifi devices
This will make your WiFi capable of being used as a router, you still need root WiFi tether or the hotspot hack like you posted but this makes wlan0 a router
I mainly use this to share files that I have on my NAS at home with friends at work. First I create a hot spot, then I connect my VPN, then I masquerade the traffic. On the server side my openvpn configuration is set up so that it trusts a specific subnet coming from behind the openvpn host (IE my phone's hotspot subnet) This provides a nice and easy means of giving friends controlled access via your mobile hotspot without needing to generate RSA keys for each of your friends. Another thing I like to use it for is when I travel I just set it up in the corner and watch movies from home on my laptop over the VPN through the hotspot.
-Ed
DroidisLINUX said:
I am confused and would like to know why we want net on VPN if we have WiFi hack for a router
Could Could we link a com port on bochs emulated windows xp?
With the WiFi hack edit or tether for root user you can use this IP addr add like below to add router capabilities, or change wlan0 to your phone's 4g rmnet or tun0 to add router to any connection, can you tell us what we would use VPN for give an example
su
ip addr add 192.168.1.0/24 dev wlan0
http://www.filedropper.com/comgooglecodeandroidwifitether-1
I use this apk to wifi tether, same as wifi router, will probably need root to use it I am not sure, but you dont need to type: ip addr add 192168.1.0/24 dev wlan0, I do just because it helps make good connections for most wifi devices
This will make your WiFi capable of being used as a router, you still need root WiFi tether or the hotspot hack like you posted but this makes wlan0 a router
Click to expand...
Click to collapse
edw00rd said:
I mainly use this to share files that I have on my NAS at home with friends at work. First I create a hot spot, then I connect my VPN, then I masquerade the traffic. On the server side my openvpn configuration is set up so that it trusts a specific subnet coming from behind the openvpn host (IE my phone's hotspot subnet) This provides a nice and easy means of giving friends controlled access via your mobile hotspot without needing to generate RSA keys for each of your friends. Another thing I like to use it for is when I travel I just set it up in the corner and watch movies from home on my laptop over the VPN through the hotspot.
-Ed
Click to expand...
Click to collapse
Or you could get Qloud Media Server, and be able to assign access to different sets of folders in your home network using username/passwords. And it costs $3.00 or $0.00 if you have a getjar pass.
This is a really cool idea, thanks for sharing.
On a somewhat unrelated note, is the VirtualBox method still the preferred means of rooting a Bionic on 4.1.2 (98.72.22)? Trying to figure out how easily I can root a friend's phone but I can't really find any consolidated source of up-to-date information. =\
TweakerL said:
Or you could get Qloud Media Server, and be able to assign access to different sets of folders in your home network using username/passwords. And it costs $3.00 or $0.00 if you have a getjar pass.
Click to expand...
Click to collapse
I think you might be confusing folder access/authentication with network access/authentication. The VPN would give you access to your network remotely via 4g/3g and yes i suppose you could use the Qloud Media Server to provide access to folders. I'm not really sure what that is, never used it but it sounds like something that provides a service via 3rd party to get access to you remotely. The third party is avoided all together witht he VPN solution. You don't have to give any sort of ingress access to any third party app. You're phone will think it's part of your home network. Also someone asked about having network bridged when you have a wifi hack... it would be purely up to you weather or not you'd want your HTTP traffic to go through the VPN or not... that's different than what I'm providing here. This is strictly for using your phone as a WiFi hotspot router that forwards all of your traffic to your VPN connection (IE your house) so that connected wifi clients would be accessable via your home network and visa versa. You could also just make a VPN hotspot and generate RSA keys for each host connecting to the hotspot.... your choice. Mine works better in a way that I maintain constant view over every device including the phone that is acting as the VPN mifi hotspot.:silly:
how to undo this? i cant connect my hotspot.

[HOW TO][NO-ROOT] Blocking ads without additional software in Android 9.0 Pie

The next method allows us to block ads in Android without to installing any additional software. It's working on any android device working with Android 9 Pie and above. ​
How to do it:
Go to Settings => Connections => More connection settings => Private DNS.
Check Private DNS provider hostname
Then you can use some of the rest. The first one is recommended.
dns.adguard.com
dns-family.adguard.com
dot-de.blahdns.com
Another DNS that you can check is NextDNS. It's free to use and provide some nice features on their website.
How to block ads in Google Chrome
The DNS method works also for Google Chrome, but you need to change something to make it work. ​
Open Chrome, type in chrome://flags
Then search for async DNS resolver (#enable-async-dns) and choose disabled in the drop-down menu. Otherwise, chrome could use a built-in DNS resolver which does not block ads.
Source: Reddit
is there that option on oreo??
mefistoreyon said:
This allows us to block ads system-wide (for apps without built in DNS resolver) without installing additional software or plugins or anything. Getting started is really easy:
1.) Open Settings --> Connections --> More connection settings --> Private DNS
2.) Check Private DNS provider hostname
3.) depending on what you want to enter either:
dns.adguard.com
dns-family.adguard.com (To block adult sites)
dot-de.blahdns.com (small hobby project with adblock)
These are secure DNS servers that have integrated ad blocking.
4.) Press Save & enjoy ad-free browsing.
5.) An extra step for Chrome users:
Open Chrome, type in chrome://flags
search for async DNS resolver (#enable-async-dns) and choose disabled in the drop-down menu. Otherwise, chrome could use a built-in DNS resolver which does not block ads.
Source: Reddit
Click to expand...
Click to collapse
So this is only for browsers? Not in apps ad blocking?
Sent from my SM-N960U using Tapatalk
System-wide; it blocks ads in apps, I've tested some apps and it worked.
If i wanna use OpenDNS, what hostname do I use?
T-mobile
Sm-n960u
Oreo 8.1.0
When I open more connection settings there is no option to add DNS, there is only am option to add VPN. What firmware are you using to do this without using an additional app?
Works like a charm... Thanks for this!
mangohorse said:
Works like a charm... Thanks for this!
Click to expand...
Click to collapse
What firmware are you on? A Google search says it's in pie, I have not found it for oero.
Everything perfect running on N9600 adroid pie
Can I trust this DNS? I mean, using it means literally everything you do on your phones goes through that server. Just curious.
It does not work in Samsung Internet browser, but you can always turn on ad blockers in the browser.
How is AdGuard dns with Bixby?
I uninstalled the AdGuard app because it prevented Bixby from working on my watch.
gwest04 said:
What firmware are you on? A Google search says it's in pie, I have not found it for oero.
Click to expand...
Click to collapse
It doesn't work on Oreo. Only Pie.
gwest04 said:
What firmware are you on? A Google search says it's in pie, I have not found it for oero.
Click to expand...
Click to collapse
Device: SM-960U1
Build: PPR1.180610.011.N960U1UEU1CSB3
It works properly, thanks!
There is an option of "Automatic", do you know where it is pointed to?
Work's for me thanks
I tried the dns.adguard.com one
Using dns.adgaurd.com seems to block random images in Twitter.
K-alz said:
Can I trust this DNS? I mean, using it means literally everything you do on your phones goes through that server. Just curious.
Click to expand...
Click to collapse
Network admin here. DNS simply translates human-friendly domain names such as www.google.com to IP addresses. Whenever an app needs to communicate with a website or server or something on the internet, via a domain name, it first asks a DNS server what the IP address for that domain name is.
That's literally the only data that will go to those servers - "hey what's the IP address of www.xyz.com?", "Here you go, its 123.234.56.78"
The worst that could happen is that you could possibly be redirected to malicious sites, but adguard is reputable so that's not likely to happen.
brc6985 said:
Network admin here. DNS simply translates human-friendly domain names such as www.google.com to IP addresses. Whenever an app needs to communicate with a website or server or something on the internet, via a domain name, it first asks a DNS server what the IP address for that domain name is.
That's literally the only data that will go to those servers - "hey what's the IP address of www.xyz.com?", "Here you go, its 123.234.56.78"
The worst that could happen is that you could possibly be redirected to malicious sites, but adguard is reputable so that's not likely to happen.
Click to expand...
Click to collapse
Well, thank you, sir. I've learned something new today. Thought everything goes through the DNS. Thank you, again.
I tried ad guard but it seemed to stop me from sending and receiving mms. I'm on t-mobile

Categories

Resources