Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dns]

DNS stands for the Domain Name System, an internet system used to translate names into IP addresses.

17
votes
4answers
108k views

Change DNS for mobile data without using an app

(My phone is rooted and runs Android 5.1) How can one change the DNS addresses of mobile data (and persistently, if possible) without the requirement of an app?
0
votes
0answers
25 views

Modifying etc/hosts file doesn't work for redirecting to something else

I need to do it for security testing purpose of an app. I have a rooted emulator which runs 7.1.1, It is rooted, I changed hosts file by using echo command, root file explorer, adb push and every else ...
1
vote
1answer
816 views

How to Block/Filter Sites on Mobile Data Connection (Preferably using DNS Server)

I researched a way to filter sites using DNS Server on android phone, and that is to changed the phone's DNS Server, it worked for WiFi connection, but not for Data Connection, how would I Block/...
2
votes
1answer
228 views

DNS error on laptop when tethered to non-rooted Android 5.1 device

I am trying to hotspot my laptop from a non-rooted Android 5.1 phone (ZTE A110). On IPv4 and IPv6 I get Connection Status: Enabled - with high speed quality - but No Internet Access. When I run ...
1
vote
2answers
194 views

What values to set in Static IP Settings of Wi-Fi when changing DNS?

I have nearly the same problem as Set Open DNS in Android 5.0.1 and the answer helped me. Although I just want to change the DNS for blocking porn, what values for the following fields should I enter?...
0
votes
0answers
12 views

DNS issue with OnePlus

I have installed Lineage OS 16 (android pie) for my oneplus one (although this issue existed in android Oreo as well). I am having a very interesting/weird issue with my phone that might be related ...
1
vote
1answer
190 views

How to configure DNS properly while two LANs are running?

The device can't ping www.google.com but ping 8.8.8.8 is okay. My OS is Android 6.0.1, the kernel is 4.1.15 I've tried the resolv.conf and /etc/hosts. But these methods seem can not work on Android. ...
0
votes
1answer
863 views

dns leak on android emulator

I run a VPN on my local pc before running my android emulator (memu), This successfully changes my ip but my dns remains the same as the exact dns on my local pc. I would like to know how I can block ...
2
votes
1answer
146 views

Can I find which app is making certain DNS requests?

So I've been using pihole and my Android 7 phone is making some unexpected requests to DNS for a particular domain. Is there an app or technique I can use to find which app is initiating those request....
0
votes
0answers
19 views

Can I use DNS-over-TLS below Android Pie?

Unfortunately DoT isn't part of Android below version 9. Is there a workaround app or should I better install LineageOS 16 on my old smartphone device?
1
vote
1answer
940 views

Orbot transparent proxy requires enabling manually

My phone is HTC One M8 on Marshmallow stock ROM, rooted with Magisk. I've installed Orbot and noticed it doesn't work in transparent proxying mode when proxying all apps. It requires manual proxy ...
1
vote
1answer
110 views

Wifi hotspot giving “No internet, secured” on Huawei P10 with Android 8.0.0

This is driving me bonkers. I've been on a chat with Vodafone and they sent me APN settings, but that hasn't helped. I've tried the settings in this thread. And that hasn't helped this time (it did a ...
0
votes
1answer
1k views

Android does not resolve local hostname. Computer does

on my debian server I have an apache instance that I access only in local lan. Suddenly I cannot connect to it anymore from my android 7.1 phone through hostname. Connecting through local ip works ...
19
votes
4answers
41k views

How to reach local computer via machine name instead of IP?

Developer here prototyping a mobile app, somewhat new to mobile: I have a simple HTTP service running (currently) on my main laptop with machine name latitude. Another laptop named vaio sharing the ...
1
vote
1answer
1k views

Connecting android phone to a local web server

Scenario. We have a product controlling some sort of household thing. Since its 2015, it also runs a small webserver so that people in the house can control the product using their phones. Everything ...
0
votes
2answers
4k views

changing dns settings on android - not working

When i set my dns on my android device and go to dns leak test it's not the dns that I set in the dns settings. Its the dns set by my ISP. How can I get it to use the dns that I want? for reference:...
2
votes
1answer
628 views

How to fix SELinux “avc: denied” errors when launching DNSCrypt as init.d script?

I've installed an unofficial lineage OS 14.1 ROM on my phone and i want to have dnscrypt used on boot by default. There is what i have done: Download arm binaries from: https://github.com/jedisct1/...
0
votes
0answers
19 views

When does DNS cache is created and deleted per interface in android

I was looking into the code in res_cache.c in android aosp. It has an cache implementation for DNS entries per each netid. I am just curious to know when that cache will be created (like the interface ...
1
vote
0answers
63 views

3g Modem connection using ppp2 widget on android x86

I am trying to connect to internet using huawei 3g dongle e1731 on android-x86-7.1-r2 using ppp2 widget (tried ppp and ppp3 but not worked).I was able to browse the internet using chrome but ...
1
vote
1answer
7k views

Set Open DNS in Android 5.0.1

Just updated my Oneplus One to Android 5.0.1, and I can't change the DNS when I select the "Static IP" option in Wi-Fi settings. Basically I can put the values in, there is just no way to press OK and ...
2
votes
2answers
130 views

Problems with the DNS Network part (or maybe virus/malware-related) on Android 6.0 Marshmallow (Alcatel Vendor)

I've been experiencing some strange problems maybe that be related with the DNS Network part in Android 6.0 Marshmallow, and could mention these two origins as the main likely sources of problems: • ...
0
votes
0answers
48 views

Why are there apps using 0.0.0.0 in my Lollipop if DNS verification is on

welp, I tried the *#*#4636#*#* and on the phone info there is the option to disable 0.0.0.0 with DNS verification. There are however some apps like google's contacts sync that are listening on the ...
1
vote
0answers
249 views

Android Wi-Fi hotspot DNS resolver: locally point domain name to custom address without root

So, I know dnsmasq is used as DNS/DHCP server in Android when running as a Wi-Fi hotspot, that dnsmasq can be used to point users to a specific address when resolving addresses, and that there is a ...
0
votes
0answers
72 views

How can I prevent DNS resolution of a name?

Blocking DNS resolution is a very crude but simple safety net I put around websites that I have moral issues with — by blocking DNS resolution I prevent a connection being made to the remote host in ...
13
votes
6answers
39k views

Android terminal not able to nslookup?

Every time I try to telnet to a domain on my LG Ally it fails, but it works if I use an IP address. So I tried to use nslookup telehack.com and it returns: Server: 0.0.0.0 Address 1: 0.0.0.0 ...
2
votes
0answers
276 views

Android wifi (oreo) dropping. Because of pihole?

First of all, my apologies if I'm posting in the wrong forum. I'm a bit lost in the SE galaxy. But since my issue is quite complex and specific, I feel this is the best place. Let me know if I'm wrong....
0
votes
0answers
19k views

How to fix DNS_PROBE_FINISHED_NO_INTERNET on an Android tablet?

What I notice: I can't connect on my tablet to the Internet in applications (Android Chrome, Youtube app, Facebook, etc.) My tablet says it is connected to the Wireless router. The router seems to be ...
2
votes
0answers
367 views

Can I force clients of my phone's Wi-Fi hotspot to use my DNS?

My phone is a Mi A1 with Oreo 8.1. It is not rooted. I am offering WiFi using hotpsot . I discovered that devices connected to my hotspot do not inherit the DNS server from my hotspot. Questions: ...
0
votes
2answers
392 views

Why can't I access google.com when tethering?

I am paying my wireless carrier (MetroPCS) for the "hotspot" feature, which is required in order for me to tether. However, strange things are a happening.... I can't access google.com, although I ...
3
votes
1answer
17k views

Android wifi says “Connected, no internet” but internet works just fine

This is a strange thing that started happening with the wifi network at my work. Android devices connected to the network say "Connected, no internet" however the internet works perfectly well. This ...
2
votes
0answers
37 views

How can I troubleshoot a very slow initial connection when web browsing on WiFi?

This has been bugging me for quite some time. When connected to my home WiFi, web connections take a long time to initially establish (like ~10 seconds+) on two separate Android phones (OnePlus 3, ...
13
votes
3answers
15k views

Why is Android refusing to resolve DNS records pointing to internal IP addresses?

I have a very strange behavior on an Android device (Nexus 7) when trying to access local network applications. Instead of getting the actual IP of the machine on LAN, the Android device gets the ...
1
vote
0answers
472 views

How to block access to domains with DNS66?

I'm using the open source Android app DNS66 to block ads on my smartphone. Is it possible to block entire domains (like facebook.com, twitter.com) with it too? My goal: Nothing loads if I visit e.g. ...
0
votes
1answer
279 views

Edits hosts file ignored by chrome

I'm trying to cut down on procrastination in a fun way (read hacking) by rooting my phone (moto g2) and editing the /system/etc/hosts file like this 127.0.0.1 localhost ::1 ip6-...
0
votes
1answer
234 views

how to block a specific URL without root?

i want to block a specific URL (a .json file on a webserver) i dont have root it should run on ANY modern android device AND FireTV ;) would be nice if we find a way ;)
1
vote
0answers
1k views

Where are the DNS settings stored in Android?

I am using IP tables to force the system to used a specific DNS but it only seems to work for WiFi networks but not mobile data. These are the IP tables I use: iptables -t nat -A OUTPUT -p tcp --...
6
votes
0answers
616 views

Bug or feature? Android ignores DNS servers with IPv6 ULAs when in an isolated ULA network?

This has cost me some hours of finally tracking it down, but I would like to know if someone can please shed light on this issue? Android 6 and 7 do not accept DNS servers with IPv6 ULA addresses. ...
1
vote
0answers
895 views

Andiodine DNS Tunneling - Connects to server but unable to browse. No internet connectivity

I have an Iodine (DNS Tunneling) server running on my VPS and have tested and confirmed DNS Tunneling is working by connecting using the Iodine client from my local Linux machine. When using the ...
0
votes
1answer
46 views

Custom DNS server not resolving wildcards

I've setup my WiFi connection on my Galaxy S7 to use a custom DNS server. My PC runs a DNS server at 192.168.0.100 and serves a few A records: home.local 192.168.0.100 shed.local 192.168.0.101 *...
9
votes
2answers
32k views

Android Tethering DNS Problem

I am using a Sony Xperia Go mobile device with Android Gingerbread (2.3.7). Whenever I try to use Tethering (USB/Mobile Wifi Tethering), I could not immediately access website using my laptop. ...
0
votes
1answer
37 views

Cache transfer when switching phone

Is the content of the web cache of my phone transferred when I switch from one android phone to another? How about web history and DNS cache? Thanks
0
votes
1answer
471 views

How to know 3g DNS setting on Android?

I want to know what is the DNS configuration of the 3G connection of my Android. Only to know, not to change (yet).
27
votes
7answers
106k views

How can I flush the DNS Cache?

How can I clear my DNS cache on my android phone? (Droid3, Gingerbread, rooted to be specific) Ideally I'm looking for a command to run through a terminal emulator, something similar to ipconfig /...
3
votes
3answers
26k views

Where do I configure DNS and IP settings in HTC Desire S?

HTC Desire S seems to have very scarce WiFi settings. I'm trying to debug a Wifi connectivity issue and looks like it might be a DNS problem. I Googled and looks like many Android devices have some "...
1
vote
1answer
2k views

I can just access Google and YouTube via a Wi-Fi hotspot created by my Windows 7 laptop. What’s wrong?

I have followed every step of this instruction, but my Android phone can only access Google and YouTube – and no other websites. What is wrong? It may be due to a DNS-server problem, but I cannot ...
1
vote
1answer
797 views

Using OpenDNS for the 3g connection

I'd like to use OpenDNS for the 3G connection on my Android phone. I have a phone with Android Lollipop. The phone is not rooted. I tried several apps for non-rooted phones (DNS Changer (no root 3G/...
0
votes
0answers
2k views

Android get dns history

Can I get the dns history on android like on windows? Like this: ipconfig /displaydns
1
vote
0answers
974 views

Zeroconf / Avahi mDNS resolution on Android

I'm running CyanogenMod 12.1 Android on a tablet. I'd like to access local servers and services that I have on my LAN which are advertised using Avahi with foo.local style names. When I try this in ...
0
votes
1answer
2k views

Using Local (private) DNS server on Lollipop

I have a website hosted on an IIS server on my network. The DNS for this website on only valid from within the network. The DNS cannot be resolved outside of this local network. I am using Wi-fi to ...
0
votes
0answers
483 views

Change DNS to openDNS but keep DHCP, NOT static

I want to change my DNS settings to open DNS but I want to keep the setting at DHCP not static since that won't work on this network. Is this possible?