t895 /DNSNet

DNS filter for Android

★ 993⑂ 46👁 11⑃ 213● 144▤ 73
KotlinGPL-3.0Created 2024-04-19
下载:1.3.171.3.17 ↓1.3.172026-10-08
+0
日增长
993
stars
46
forks
11
watchers
213
prs
144
issues
73
releases

README

Based on DNS66, DNSNet aims to continue the goals of the original
app with modern Android development practices.

This is a DNS-based host blocker for Android. In the default configuration,
several widely-respected host files are used to block ads, malware, and other
weird stuff.







Screenshots
-----------


   


Installing
----------












Or download the latest APK from the Releases Section.

How it works
------------
The app establishes a "VPN (Virtual Private Network) service." Traditionally, these are intended to
send internet traffic from your device to a remote server with the intent of anonymizing the source
of your requests. In the case of DNSNet, this is not the case.

DNSNet uses Android's "VPN service" API as a way to read and filter your internet traffic entirely
on-device. It starts by getting access to a "tunnel" that provides your network requests. Then, it
reads the hostname (e.g. google.com) of each DNS request. Finally, it blocks or allows each request
based on the configuration as seen in the "Filters" screen of the app.

It's important to note that this approach is not perfect and has some notable downsides:
 While this app has been tuned to be as efficient as possible, it is still a service that must run
constantly and will have some battery cost over alternate methods of blocking through services like
AdAway with root, Rethink, and others.
 Since this runs as a "VPN service," you will be unable to run another "VPN service" alongside it
since Android only allows for one at a time.

For further information, see the FAQ.

Contributing
------------
See CONTRIBUTING.md

Building
--------
You'll need a few things installed to get up and running
- Rust
- Python 3
- Java 17+
- Android Studio (Optionally)

Building on Windows is currently broken due to issues with compiling quiche, the crate I use for making HTTP/3 requests.
Here's the related issue - https://github.com/cloudflare/quiche/issues/2020

Add all of the Rust build targets
bash
rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi


Add a ANDROID_NDK_HOME environment variable that points to .../

Android Studio will be picky about where you declare the variable. On Ubuntu I added it to my
/etc/environment file and on macOS I added it to my ~/.zprofile file.

Install cmake and make

Then run this in the root of the project to build the app
bash
./gradlew assembleDebug


Note - Android Studio Ladybug on macOS has an issue where it won't be able to find "rustc" and "cargo" when building.
You'll need to build via the command line in order for things to work properly.

https://issuetracker.google.com/issues/377339196?pli=1

Alternatively, you can launch Android Studio with this command to workaround the issue.
bash
open -na "Android Studio.app"


License
-------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either v

Top issues

Latest release

1.3.17 1.3.17 2026-10-08
Changes
- Updated translations from Weblate
- Updated dependencies

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON