A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged

4

Pardon me if I fail to sum up the wast subject in a brief answer :) SELINUX AND AVC DENIALS Android is based on Linux kernel that makes use of Discretionary and Mandatory Access Controls (DAC, MAC) to restrict access to system resources such as files on a certain filesystem. DAC includes classic UNIX RWX file modes, owner/group or UID/GID, Extended ...


3

Starting with Android 9 Pie it is possible to change DNS globally, provided they support TLS. Just go in Settings → Network & internet → Advanced → Private DNS


2

DNS has traditionally been part of libc. Android's Bionic libc depends on netd for traditional DNS as well as Private DNS (DoT) implementation. See this answer for more details. Since every app runs in its own stance of Virtual Machine (ART) forked by zygote, so when an app creates a new connection to a remote hostname, DNS queries are made by the VM on ...


2

WHAT IS MDNSD: mdnsd (Multicast Domain Name System Daemon) is Android's implementation of mDNSResponder, a part of upcoming Zero Configuration Networking. It allows you to automatically discover services and appliances attached to your network: Name-to-address translation and other DNS-like operations (mDNS) in the absence of a conventional unicast DNS ...


2

It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a rooted device). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;) Install a Terminal Emulator Create a shellscript with the content su -c "kill $(pgrep mdnsd)" Run it everytime ...


2

There are no settings to set DNS server with Mobile Data. An exception is Private DNS (DoT) on Android 9+. Also sometimes DNS leakage may occur with WiFi DNS settings e.g. if some app has hard-coded DNS server address. However with root access you can force redirect DNS queries to any specific server using iptables. See details in How does Android OS do DNS ...


2

HOW DNS QUERY AND CACHING WORKS? Mostly I find that subsequent DNS lookups are always just for mymovies and never again for mymovies.home NOTE: Just to make sure, check that .home search domain is set: ~$ dumpsys netd | grep 'search domains:' search domains: home This behavior is due to Negative DNS Caching. The question is not explicitly about ...


2

Add allowed hosts to /etc/hosts and define these firewall rules to block any outgoing DNS queries on standard UDP port 53: ~# iptables -I OUTPUT -p udp --dport 53 -j REJECT * May also use less rude DROP target in place of REJECT To be on safe side also block TCP port: ~# iptables -I OUTPUT -p tcp --dport 53 -j REJECT iptables is part of stock Android ...


1

How DNS queries made by a program are being resolved isn't specific to an OS, but depends on the resolver library the program is using. DNS resolvers have traditionally been part of OS's standard C library e.g. Bionic on Android, libcmt on Windows, glibc, musl, dietlibc, uClibc and others on Linux. Not all C libraries use the same approach to resolve host/...


1

SHORT ANSWER: You would be able to ping a local host by name only if your Wi-Fi router (or some other local host) is running a DHCP/DNS server which does know the name of the host you are trying to ping. This is a screenshot from my router: Also make sure your Android device is sending DNS queries to local server and not on internet. Android loves Google ...


1

So, how can I persuade Termius (free version) to understand local network host names? In fact you have to persuade Android OS, not a specific app. Resolving hostnames is handled by Android's C library to which apps are linked through APIs at the time of compiling. On the PC I can simply issue the command putty fred@servername and I can login without ...


Only top voted, non community-wiki answers of a minimum length are eligible