Skip to content

A standalone DNS proxy for Android 4.3+ (and later).

Notifications You must be signed in to change notification settings

hevz/hev-dns-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HevDnsProxy

A standalone DNS proxy for Android 4.3+.

Features

  • Replace dns proxy of netd.
  • Use user specific dns servers.
  • Apply any iptables rules that were set up to allow/deny access to specific UIDs (apps).
  • JNI, user specific policy.

How to Build

mkdir hev-dns-proxy
cd hev-dns-proxy
git clone git://github.com/heiher/hev-dns-proxy jni
ndk-build

How to Run

# Switch to root user
adb root
# Push executable to device
adb push hev-dns-proxy /data/hev-dns-proxy
adb shell
# Run new dns proxy in background
/data/hev-dns-proxy -p /dev/socket/hev-dns-proxy -a 8.8.8.8 -b 8.8.4.4 &
cd /dev/socket
# Change ownership and SELinux context for socket file of new dns proxy
chown root:inet hev-dns-proxy
chcon u:object_r:dnsproxyd_socket:s0 hev-dns-proxy
# Backup socket file of netd
mv dnsproxyd dnsproxyd.netd
# Enable new dns proxy
mv hev-dns-proxy dnsproxyd

Authors

License

Apache

About

A standalone DNS proxy for Android 4.3+ (and later).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published