Bảo mật DNS mã hóa, Vượt chặn DPI không cần kernel driver, Tối ưu Gaming & Lá chắn kết nối Windows
Encrypted DNS Security, Driverless DPI Bypass, Gaming Optimization & Connection Security Shield for Windows 10/11 (x64)
🇻🇳 Tiếng Việt • 🧰 Công nghệ • 🏗️ Kiến trúc • ⚙️ Cơ chế hoạt động • 🇬🇧 English • ⬇️ Tải bản mới nhất / Latest Release
JustCryptDns là bộ công cụ bảo mật mạng và DNS mã hóa thế hệ mới viết bằng C# / WPF (.NET 8) dành riêng cho Windows 10 (22H2+) và Windows 11 x64. Ứng dụng kết hợp Proxy DNS cục bộ (DoH / DoT / DNSCrypt v2), Vượt chặn DPI thuần C# không cần kernel driver (an toàn với Anti-Cheat), Chuyển đổi 5 chế độ vận hành thông minh, Tối ưu độ trễ chơi game, và Giám sát kết nối kèm Lá chắn Windows Firewall — tất cả chạy ổn định qua Windows Service với mức tiêu thụ tài nguyên cực thấp khi thu nhỏ xuống khay hệ thống.
Phiên bản hiện tại:
v1.8.7— Giao diện 12 phân mục, Schema cấu hìnhv19, 259/259 bài kiểm thử tự động đạt chuẩn, tự động kiểm tra UDP/TCP tránh xung đột cổng5354(nhưmDNSResponder.exe/Bonjour) chodnscrypt-proxy, tự động cấp quyền lại adapter DNS Windows và mở cửa sổ mượt mà từ khay hệ thống.
| Phân hệ | Mô tả chi tiết |
|---|---|
| ⚡ Bộ chuyển 5 chế độ tức thì | Chuyển nhanh ngay trên Tổng quan giữa Tốc độ cao, Chế độ Game, Cân bằng, Tự động (Auto) và Bảo mật với hồ sơ tùy chỉnh riêng cho từng chế độ và tự động chuyển ngữ cảnh thông minh. |
| 🛡️ Nhân DNS mã hóa đa giao thức | Hỗ trợ đầy đủ DNS over HTTPS (RFC 8484), DNS over TLS (RFC 7858), DNSCrypt v2 (dnscrypt-proxy) và UDP/TCP; tích hợp LocalDnsProxy trên 127.0.0.1 / 127.0.0.2:53 (+ IPv6 ::1), chống vòng lặp DNS (DnsLoopGuard) và tự phát hiện xung đột cổng. |
| 🔁 Tự động chọn cổng trống DNSCrypt (Mới v1.8.7) | Kiểm tra sẵn cả UDP và TCP trước khi chạy dnscrypt-proxy, tự động nhảy sang dải cổng dự phòng (15354, 15355, 15356, 25354, 35354 hoặc ephemeral port) nếu cổng 5354 bị dịch vụ khác (như Apple Bonjour mDNSResponder.exe) chiếm giữ, kèm cô lập file cấu hình theo PID giữa Service và UI. |
| 🚀 Vượt chặn DPI thuần C# (Không Kernel Driver) | Tách mảnh TLS Record/CH thuần C# không xung đột Anti-Cheat; hỗ trợ Auto-PAC Windows thông minh (lưu lượng trận game đi thẳng 100%, chỉ tên miền bị chặn/như Steam, Discord, web mới qua proxy), chế độ toàn bộ web (AllWebsitesSmart), tự sửa lỗi 4 tầng (16B / Direct / Tunnel) và tùy chọn kết hợp Cloudflare WARP. |
| 🎮 Tối ưu chơi game (Gaming Engine) | Đo kiểm đa tên miền song song với các chỉ số thực: Avg, Min, Max, P95, Jitter, tỷ lệ thành công và điểm tin cậy; 8 hồ sơ game dựng sẵn + hồ sơ tùy chỉnh; chế độ Gaming Mode ghim resolver ổn định giữa trận và khóa chống nhảy sang resolver chậm. |
| 🌐 Thư viện Resolver & Định tuyến thông minh | Tích hợp Cloudflare, Google, Quad9, OpenDNS, AdGuard, Control D, NextDNS, Mullvad, DNS0 + thêm máy chủ tùy chỉnh; định tuyến theo tên miền (Exact, Domain & Subdomains, Wildcard), hỗ trợ Local DNS Rewrites cho mạng LAN/dev và nhập/xuất hồ sơ JSON. |
| 🧹 Lọc DNS & Bộ nhớ đệm TTL thông minh | Danh sách chặn Quảng cáo, Theo dõi, Mã độc, Lừa đảo, Telemetry, danh sách hosts, danh sách cho phép (Allowlist), bảo vệ tên miền thiết yếu của Windows, hỗ trợ Serve-Stale (phục vụ bản ghi hết hạn khi mạng chập chờn) và Prefetch tự làm mới truy vấn hay dùng. |
| 🔒 Giám sát kết nối & Lá chắn Firewall | Theo dõi bảng TCP/UDP thời gian thực (0% CPU khi rời tab hoặc thu nhỏ), kiểm tra chữ ký tiến trình, tích hợp Threat Intelligence cảnh báo/chặn IP độc hại, DNS Leak Guard chặn rò rỉ cổng 53/853 qua Firewall và nút Khóa mạng Khẩn cấp (Kill Switch). |
| 🩺 Tự thích nghi mạng & An toàn Windows 6 bước | Tự động sao lưu DNS/Proxy cũ trước khi áp dụng, kiểm tra SHA-256 bản sao lưu, thăm dò kết nối (connectivity probe), tự động hoàn tác (auto-rollback) nếu lỗi, tự nhường đường khi phát hiện VPN đang chạy, tạm dừng 5 phút khi gặp Captive Portal (Wi-Fi công cộng), tự vá khi DNS card mạng bị trôi và tự phục hồi qua RunOnce sau sập nguồn. |
| ⚙️ Windows Service chạy nền & Tray Control Center | Dịch vụ JustCryptDnsService (LocalSystem) chạy độc lập với giao diện qua Named Pipe IPC bảo mật ACL (JustCryptDns.Ipc.v1); UI trì hoãn khởi tạo cửa sổ khi StartMinimized = true để tiết kiệm RAM, đi kèm bảng điều khiển nhanh ở khay hệ thống, Command Palette (Ctrl+K), song ngữ Tiếng Việt / English tức thì và tự động cập nhật trực tiếp từ GitHub Releases. |
| Tầng / Lĩnh vực | Công nghệ & Thư viện chính | Vai trò trong JustCryptDns |
|---|---|---|
| Nền tảng & Biên dịch | .NET 8.0 (net8.0 / net8.0-windows), C# mới nhất, Tiered PGO, Workstation GC |
Tối ưu độ trễ khởi động và giữ mức RAM nền thấp khi thu nhỏ xuống khay hệ thống (ConcurrentGarbageCollection=false cho UI). |
| Giao diện Desktop (UI/UX) | WPF (Windows Presentation Foundation), mô hình MVVM, CommunityToolkit.Mvvm 8.4.0 |
Xây dựng 12 trang chức năng, Custom WindowChrome, Command Palette (Ctrl+K), Virtualized Live Monitor & Tray Control Center. |
| Dịch vụ nền & DI | Microsoft.Extensions.DependencyInjection 8.0.1, Microsoft.Extensions.Hosting & WindowsServices 8.0.1 |
Vận hành JustCryptDnsService dưới quyền LocalSystem, tự phục hồi và đồng bộ vòng đời toàn hệ thống. |
| Giao tiếp liên tiến trình (IPC) | Named Pipe Server/Client (JustCryptDns.Ipc.v1) + PipeSecurity ACL |
Truyền bản tin JSON có tiền tố độ dài (length-prefixed framing) giữa UI không cần quyền Admin liên tục và Windows Service chạy nền. |
| Nhân DNS & Mạng | System.Net.Sockets, HttpClient (SocketsHttpHandler), SslStream, DnsPacket RFC Wire Parser |
Tự xử lý hoàn toàn gói tin DNS Wire, DoH (RFC 8484), DoT (RFC 7858), UDP/TCP và quản lý tiến trình con dnscrypt-proxy (DNSCrypt v2). |
| Vượt chặn DPI thuần C# | LocalSmartBypassProxy (HTTP CONNECT / SOCKS5), LocalPacHttpServer, TlsClientHelloFragmenter |
Tách mảnh gói TLS ClientHello/Record ngay ở tầng ứng dụng kết hợp Auto-PAC, không cài kernel driver, không xung đột Anti-Cheat. |
| Tích hợp Windows cấp thấp | P/Invoke ([LibraryImport] & [DllImport]): iphlpapi.dll, dnsapi.dll, wininet.dll, wintrust.dll, dwmapi.dll, shell32.dll, user32.dll, kernel32.dll, advapi32.dll |
Đọc bảng kết nối TCP/UDP, áp dụng System PAC, kiểm tra chữ ký tiến trình, hiệu ứng Mica/Acrylic/DWM Blur, icon khay hệ thống không cần WinForms, và Job Object tự dọn tiến trình con (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE). |
| Lưu trữ, Log & Cập nhật | System.Text.Json (Schema v19), Serilog 4.2.0 + Serilog.Sinks.File 6.0.0, SHA-256 + GitHub Releases API |
Lưu cấu hình nguyên tử (atomic save), tự sửa lỗi file hỏng, xoay vòng nhật ký dung lượng giới hạn và kiểm chứng SHA-256 trước khi cập nhật. |
| Kiểm thử & Đóng gói | xUnit 2.9.2, STA WPF Smoke Harness, PowerShell (Build-Release.ps1), Inno Setup 6 (ISCC.exe) |
259 bài kiểm thử tự động offline và đóng gói win-x64 self-contained (.exe installer + .zip portable + SHA256SUMS.txt). |
flowchart TB
subgraph UI["JustCryptDns.App (WPF UI - MVVM / WinExe)"]
Shell["MainWindow & 12 Pages (ShellViewModel)"]
Tray["TrayIconService & TrayControlCenterWindow"]
Hybrid["HybridDnsEngineProxy & HybridBypassEngineProxy"]
end
subgraph SVC["JustCryptDns.Service (LocalSystem Windows Service)"]
Worker["DnsBackgroundWorker & ServiceStateManager"]
PipeSrv["NamedPipeIpcServer (JustCryptDns.Ipc.v1)"]
end
subgraph ENGINE["Tầng xử lý DNS & Mạng"]
DNS["JustCryptDns.DNS (LocalDnsProxy, DoH, DoT, DNSCryptProxyManager, Routing, Filtering, Cache)"]
NET["JustCryptDns.Network (BypassEngineService, Auto-PAC, Gaming, Failover, ConnectionMonitor, SecurityShield)"]
end
subgraph INFRA["Tầng Hạ tầng & Lõi"]
Infra["JustCryptDns.Infrastructure (WindowsDns, WindowsProxy, WindowsFirewall, IPC, Registry RunOnce, Updater, Serilog)"]
Core["JustCryptDns.Core (Models, Interfaces, AppSettings Schema v19, Migrations)"]
Store[("C:\\ProgramData\\JustCryptDns\\settings.json + backups + logs")]
end
subgraph OS["Windows OS & Upstream"]
WinNet["Windows Network Adapter, System Proxy & Windows Firewall"]
Upstream["Encrypted DNS Upstreams & Blocked Web Targets"]
end
Shell --> Hybrid
Tray --> Hybrid
Hybrid -- "Named Pipe IPC (ACL Protected)" --> PipeSrv
Hybrid -. "Fallback nếu không có Service" .-> DNS
Hybrid -. "Fallback nếu không có Service" .-> NET
PipeSrv --> Worker
Worker --> DNS
Worker --> NET
DNS --> Core
NET --> DNS
NET --> Core
Infra --> Core
Worker --> Infra
Shell --> Infra
Infra <--> Store
Infra <--> WinNet
DNS <--> Upstream
NET <--> Upstream
- Chế độ Cài đặt (Installed Mode): Dịch vụ nền
JustCryptDnsServicechạy dưới quyềnLocalSystemngay khi Windows khởi động (vớiDelayedAutostart = 0), khởi tạo nhân DNS (127.0.0.1/127.0.0.2:53), bộ vượt DPI (127.0.0.1:10808+ PAC10809) và Firewall DNS Leak Guard độc lập hoàn toàn với giao diện. - Giao diện
JustCryptDns.exe: Giao tiếp với Service qua Named PipeJustCryptDns.Ipc.v1. Khi người dùng bật Khởi động thu nhỏ (StartMinimized), ứng dụng chỉ tạo icon khay hệ thống và trì hoãn khởi tạoMainWindowcho đến khi bạn mở app, đồng thời tự động cắt giảm RAM (working-set trim) và đưa CPU nền của các màn hình giám sát về0%. - Chế độ Portable: Khi không có Windows Service (hoặc chạy bản kèm
portable.flag),HybridDnsEngineProxyvàHybridBypassEngineProxytự động chuyển sang chạy nhân cục bộ ngay trong tiến trình ứng dụng mà không thay đổi trải nghiệm.
flowchart LR
App["Ứng dụng / Trình duyệt Windows"] -->|"UDP / TCP :53"| Proxy["LocalDnsProxy (127.0.0.1 / 127.0.0.2)"]
Proxy --> Loop["DnsLoopGuard (Chống vòng lặp)"]
Loop --> Filter["DnsFilteringService (Allowlist / Blocklist / Windows Guard)"]
Filter -->|"Bị chặn"| Sink["NXDOMAIN / 0.0.0.0"]
Filter -->|"Hợp lệ"| Rewrite["Local DNS Rewrites"]
Rewrite --> Cache["DnsCacheService (TTL / Serve-Stale / Prefetch)"]
Cache -->|"Cache Hit"| Reply["Trả kết quả ngay + Ghi Live Monitor"]
Cache -->|"Cache Miss"| Route["DnsRoutingService & Gaming Pinning"]
Route --> Up["Upstream (DoH / DoT / DNSCrypt v2 / UDP-TCP)"]
Up -->|"Lỗi / Timeout"| Fail["DnsFailoverService (Chuyển resolver dự phòng)"]
Fail --> Up
Up --> Reply
- Tiếp nhận & Chống vòng lặp:
LocalDnsProxylắng nghe đồng thời UDP và TCP trên IP loopback đã cấu hình (tự đổi sang127.0.0.2:53nếu127.0.0.1:53đã có phần mềm khác chiếm), sau đóDnsLoopGuardchặn mọi cấu hình trỏ ngược về chính nó. - Lọc tên miền & Bảo vệ Windows:
DnsFilteringServiceưu tiên kiểm tra Allowlist, ngoại lệ tạm thời, Essential Windows Domain Safeguard (không bao giờ vô tình chặn cập nhật/kích hoạt Windows) rồi mới áp dụng Blocklist (Quảng cáo, Theo dõi, Mã độc, Phishing, Telemetry, Hosts). - Local Rewrites & Bộ nhớ đệm TTL thông minh: Tên miền nội bộ khớp quy tắc rewrite được trả lời tức thì; các truy vấn ngoài đi qua
DnsCacheServicehỗ trợ Serve-Stale (trả bản ghi cũ tạm thời khi mạng vừa rớt) và Prefetch (tự làm mới âm thầm trước khi hết hạn TTL). - Định tuyến, DNSCrypt v2 & Failover:
DnsRoutingServicechọn upstream theo quy tắc tên miền (chế độ Game sẽ ghim chặt resolver để tránh nhảy server giữa trận). Riêng DNSCrypt v2,DnsCryptProxyManagertự thăm dò cả UDP+TCP để chọn cổng nội bộ trống (15354,15355, ... tránh đụng cổng5354củamDNSResponder.exe), định tuyến quaActivePortthực tế và cô lập tệp cấu hình theo PID. Nếu upstream quá hạn,DnsFailoverServicetự thử lại hoặc chuyển sang resolver dự phòng được mã hóa.
flowchart LR
Net["Lưu lượng mạng Windows"] -->|"Truy vấn script PAC (127.0.0.1:10809)"| PAC["Auto-PAC Smart Filter"]
PAC -->|"Game Server / LAN / Web thường"| Direct["Đi thẳng 100% (0 ms độ trễ Proxy)"]
PAC -->|"Tên miền bị chặn DPI (Steam, Discord, Rule...)"| SmartProxy["LocalSmartBypassProxy (127.0.0.1:10808)"]
SmartProxy -->|"HTTPS ClientHello"| Frag["TlsClientHelloFragmenter (Tách mảnh TLS Record/CH)"]
Frag -->|"Lỗi kết nối?"| SelfHeal["Tự sửa lỗi 4 tầng (Thử 16B -> Direct -> Tunnel / WARP)"]
Frag --> Target["Máy chủ đích (Vượt DPI của ISP)"]
- An toàn với Anti-Cheat: Khác với các công cụ cài driver WinDivert/NDIS dễ xung đột với Vanguard, EAC hay BattlEye, JustCryptDns chạy hoàn toàn ở User-Mode bằng System Auto-PAC (
LocalPacHttpServer) kết hợp Local Smart Proxy (LocalSmartBypassProxy). - Tách riêng lưu lượng Game: Các tên miền và kết nối trận đấu game đi thẳng DIRECT (100%) với
0 msđộ trễ thêm vào; chỉ những tên miền trong danh sách vượt chặn hoặc chế độ Web thông minh (AllWebsitesSmart) mới đi qua bộ tách mảnh TLS (TlsClientHelloFragmenter). - Tự phục hồi kết nối 4 tầng: Khi một trang web gặp reset TCP/TLS từ nhà mạng, hệ thống tự động thử hạ kích thước mảnh về
16 byte, thử kết nối thẳng hoặc chuyển qua đường hầm dự phòng/WARP để đảm bảo truy cập ổn định.
- An toàn cấu hình Windows: Trước khi sửa DNS của card mạng hoặc Proxy Windows, JustCryptDns luôn sao lưu cấu hình gốc kèm mã kiểm tra SHA-256, áp dụng địa chỉ mới, chạy thăm dò kết nối thực tế (
connectivity probe), tự động hoàn tác (auto-rollback) nếu mất mạng, và ghi khóaRunOnceđể tự dọn sạch cấu hình DNS/Proxy nếu máy sập nguồn đột ngột. - Tự thích nghi theo ngữ cảnh: Tự động phát hiện khi bạn bật VPN để nhường quyền DNS cho VPN; tự động tạm dừng 5 phút khi phát hiện cổng đăng nhập Wi-Fi công cộng (Captive Portal); và tự vá lại DNS nếu Windows/DHCP ghi đè trôi khỏi
127.0.0.1/127.0.0.2. - Lá chắn kết nối: Đọc bảng socket hệ thống qua
iphlpapi.dll, xác minh chữ ký số tiến trình quawintrust.dll, đối chiếu IP với cơ sở dữ liệu đe dọa (Threat Intelligence), khóa rò rỉ cổng53/853qua Windows Firewall (DNS Leak Guard) và cung cấp nút Khóa mạng Khẩn cấp (Emergency Lockdown) tức thời.
- Truy cập trang GitHub Releases để tải về:
JustCryptDns-1.8.7-win-x64-setup.exe(Khuyên dùng): Trình cài đặt hoàn chỉnh kèm đăng ký dịch vụ nềnJustCryptDnsService(tự khởi động cùng Windows, giữ DNS hoạt động ngay cả khi đóng UI).JustCryptDns-1.8.7-win-x64-portable.zip: Bản chạy trực tiếp không cần cài đặt (chứa tệp đánh dấuportable.flag, lưu toàn bộ cấu hình và log ngay trong thư mục ứng dụng).SHA256SUMS.txt: Mã băm SHA-256 dùng để xác minh toàn vẹn tệp tải về.
- Yêu cầu hệ thống: Windows 10 22H2 trở lên hoặc Windows 11 (x64). Bản phát hành chính thức đã đóng gói self-contained (.NET 8), không cần cài thêm .NET Runtime trên máy người dùng.
- Không thu thập dữ liệu (Zero Telemetry): Mọi phân tích, lọc và ghi nhật ký diễn ra hoàn toàn cục bộ trên máy của bạn.
Yêu cầu cho nhà phát triển: .NET SDK 8.0+, Windows 10/11 x64, và tùy chọn Inno Setup 6 (ISCC.exe) để đóng gói bộ cài .exe.
# Khôi phục và biên dịch chế độ Release
dotnet build JustCryptDns.sln -c Release
# Chạy toàn bộ 259 bài kiểm thử đơn vị & tích hợp (chạy offline)
dotnet test JustCryptDns.sln -c Release --no-build
# Chạy trực tiếp ứng dụng UI
dotnet run --project src/JustCryptDns.App
# Đóng gói đầy đủ bản phát hành win-x64 (self-contained, portable ZIP, setup.exe, SHA256SUMS.txt)
powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\Build-Release.ps1 -Version "1.8.7"| Thành phần | Vai trò |
|---|---|
src/JustCryptDns.Core |
Mô hình dữ liệu, interfaces, schema cấu hình AppSettings (v19), nâng cấp dữ liệu tự động (không phụ thuộc UI/Windows) |
src/JustCryptDns.DNS |
Nhân DNS (LocalDnsProxy, DoH, DoT, DNSCrypt v2, UDP/TCP, Routing, Filtering, TTL/Serve-Stale/Prefetch Cache) |
src/JustCryptDns.Network |
Thông tin mạng, BypassEngineService (TLS fragment + Auto-PAC), Gaming Benchmark, Failover, Diagnostics, Connection Monitor & Security Shield |
src/JustCryptDns.Infrastructure |
Tích hợp Windows (DNS adapter, System Proxy, Firewall, ACL, Registry Run/RunOnce, Named Pipe IPC), GitHub Updater, JSON atomic storage, Serilog |
src/JustCryptDns.Service |
Windows Service độc lập (JustCryptDnsService) chạy nền và tự đồng bộ trạng thái với UI |
src/JustCryptDns.App |
Giao diện WPF hiện đại (MVVM / CommunityToolkit.Mvvm), 12 trang chức năng, Tray Control Center, Command Palette, song ngữ en/vi |
tests/JustCryptDns.Tests |
Bộ kiểm thử xUnit (259 tests bao phủ DNS, Bypass, Service IPC, Tray/Window lifecycle, Crash/Port conflict recovery) |
tools/ & installer/ |
Script đóng gói phát hành, tạo chuỗi tài nguyên strings.tsv, icon, chụp ảnh giao diện DevSnapshot, và cấu hình Inno Setup |
Vị trí lưu trữ dữ liệu:
- Bản cài đặt (Installed mode):
C:\ProgramData\JustCryptDns\settings.json(kèmbackups\vàlogs\service-*.log,logs\ui-*.logxoay vòng giới hạn dung lượng) — giúp Service (LocalSystem) và UI chia sẻ cùng một cấu hình thống nhất. Tệp tạm cập nhật được tải về%LOCALAPPDATA%\JustCryptDns\updates\. - Bản Portable (khi có
portable.flag): Lưu trực tiếp trong thư mục condata\cạnhJustCryptDns.exe.
Biến môi trường hỗ trợ phát triển:
| Biến môi trường | Tác dụng |
|---|---|
JUSTCRYPTDNS_DATA_DIR |
Dùng thư mục dữ liệu riêng cho chế độ portable hoặc kiểm thử cô lập |
JUSTCRYPTDNS_SOFTWARE_RENDER=1 |
Ép WPF kết xuất bằng phần mềm (phù hợp VM / GPU không tương thích) |
JUSTCRYPTDNS_SNAPSHOT_DIR |
Tự động chụp ảnh PNG các trang (JUSTCRYPTDNS_SNAPSHOT_PAGES, JUSTCRYPTDNS_SNAPSHOT_SUFFIX, JUSTCRYPTDNS_SNAPSHOT_START_ENGINE=0, JUSTCRYPTDNS_SNAPSHOT_EXIT=1) |
Xem thêm: Hướng dẫn sử dụng • Xử lý sự cố • Đo kiểm hiệu năng • Kiến trúc & Lộ trình • Third-Party Notices
JustCryptDns is an advanced encrypted DNS, driverless DPI bypass, gaming latency optimization, and connection security suite for Windows 10 (22H2+) and Windows 11 (x64) built with C# / WPF on .NET 8. It runs cleanly via an independent LocalSystem Windows Service (JustCryptDnsService) with near-zero idle memory/CPU footprint when minimized to the system tray.
Current Release:
v1.8.7— 12 UI sections, versioned JSON schemav19, 259/259 automated tests passing, automatic UDP+TCP port conflict resolution fordnscrypt-proxy(avoiding TCP5354collisions such as Apple BonjourmDNSResponder.exe), Windows adapter DNS drift self-healing, and reliable tray window activation.
- 5-Mode Operation Switcher: Instant switching between High Speed, Gaming Mode, Balanced, Auto, and Security modes with per-mode customization and context rules.
- Multi-Protocol Encrypted DNS Engine: Local DNS proxy (
127.0.0.1/127.0.0.2:53, optional IPv6::1) supporting DoH (RFC 8484), DoT (RFC 7858), DNSCrypt v2 (dnscrypt-proxy), and UDP/TCP, complete with DNS loop guard (DnsLoopGuard) and port conflict detection. - Automatic
dnscrypt-proxyFree-Port Fallback (v1.8.7): Probes both UDP and TCP loopback availability before launchingdnscrypt-proxy, automatically shifting from busy port5354to free fallback ports (15354,15355,15356,25354,35354, or ephemeral ports), retrying on bind conflicts, routingDnsCryptUpstreamto the liveActivePort, and isolating runtime configs per PID. - Driverless Pure-C# DPI Bypass & Smart Tunneling: TLS Record/ClientHello fragmentation with zero kernel drivers (Anti-Cheat safe), Smart Windows Auto-PAC (100% direct traffic for game servers, smart proxying for blocked storefronts/websites like Steam and Discord), 4-tier self-healing (
16B / Direct / Tunnel), and optional Cloudflare WARP routing. - Resolver Library & Smart Routing: Built-in Cloudflare, Google, Quad9, OpenDNS, AdGuard, Control D, NextDNS, Mullvad, DNS0 + custom endpoints, per-domain routing (
Exact,Domain & Subdomains,Wildcard), Local DNS Rewrites, and live health checks. - DNS Filtering & Smart TTL Cache: Blocklists (Ads, Tracking, Malware, Phishing, Telemetry, custom/hosts), allowlists, essential Windows domain safeguard, positive/negative TTL cache, Serve-Stale, and query Prefetch.
- Gaming Low Latency Engine: Multi-domain parallel benchmarking (Avg, Min, Max, P95, Jitter, success rate, reliability score), 8 built-in + custom game profiles, and Gaming Mode with session resolver pinning.
- Connection Monitor & Windows Firewall Security Shield: Real-time TCP/UDP connection viewer (
0%background CPU when inactive), process digital signature inspection, Threat Intelligence IP blocking, DNS Leak Guard (blocking port53/853leaks), and Emergency Lockdown kill switch. - Network Adaptation & 6-Step Windows Safety: Atomic DNS/Proxy backup with SHA-256 verification, connectivity probing, auto-rollback on failure, automatic VPN deferral, 5-minute Captive Portal pause, adapter DNS drift self-healing, and
RunOncecrash recovery. - Modern Customizable Desktop Experience: 4 theme modes (Dark/Light/System/Custom), WCAG-verified accent colors, Windows 11 Mica/Acrylic & Windows 10 DWM Blur transparency (
0–90%), Tray Control Center flyout, Command Palette (Ctrl+K), runtime English / Vietnamese localization, and GitHub Releases in-app auto-updater with SHA-256 verification.
- Core Platform & UI:
.NET 8.0(net8.0/net8.0-windows) with Tiered PGO, WPF + MVVM (CommunityToolkit.Mvvm 8.4.0),Microsoft.Extensions.DependencyInjection 8.0.1,Microsoft.Extensions.Hosting.WindowsServices 8.0.1,System.Text.Json(versioned schemav19),Serilog 4.2.0(Serilog.Sinks.File 6.0.0),xUnit 2.9.2(259automated tests), and Inno Setup 6 (win-x64self-contained). - Win32 & Network Stack: ACL-secured Named Pipe IPC (
JustCryptDns.Ipc.v1), raw DNS wire parsing, DoH (RFC 8484), DoT (RFC 7858),dnscrypt-proxymanagement with Job Object child cleanup (kernel32.dll), driverless user-mode TLS ClientHello fragmentation + Auto-PAC (wininet.dll), live connection inspection (iphlpapi.dll+wintrust.dll), Windows Firewall integration, and DWM Backdrop interop (dwmapi.dll). - How It Works (Runtime Flow):
- Unified Service + UI:
JustCryptDnsService(LocalSystem) hosts the DNS proxy, DPI bypass proxy, and Firewall policies persistently, whileJustCryptDns.exeattaches overJustCryptDns.Ipc.v1, defersMainWindowallocation whenStartMinimizedis enabled, and trims idle memory automatically (or runs standalone in Portable mode). - DNS Query Pipeline: Queries hit
LocalDnsProxy(127.0.0.1/127.0.0.2:53) →DnsLoopGuard→DnsFilteringService(Allowlist / Essential Windows Guard / Blocklists) → Local Rewrites → TTL/Serve-Stale/Prefetch Cache →DnsRoutingService& Gaming Pinning → Encrypted Upstream (with automatic UDP+TCP free-port selection fordnscrypt-proxy) →DnsFailoverService. - Driverless DPI Bypass:
LocalPacHttpServer(127.0.0.1:10809) routes game server traffic 100% DIRECT (0 msoverhead) while sending DPI-restricted web domains throughLocalSmartBypassProxy(127.0.0.1:10808) for pure-C# TLS fragmentation and 4-tier self-healing. - 6-Step Windows Safety: Before applying adapter DNS or system proxy changes, backups are SHA-256 verified, connectivity-probed with automatic rollback on failure, protected by
RunOnceboot recovery, and continuously adapted around VPNs, Captive Portals, and adapter DNS drift.
- Unified Service + UI:
(See the interactive Architecture & Pipeline Mermaid Diagrams above.)
- Download
JustCryptDns-1.8.7-win-x64-setup.exe(recommended, installsJustCryptDnsService) orJustCryptDns-1.8.7-win-x64-portable.zipfrom GitHub Releases along withSHA256SUMS.txt. - Both packages are self-contained (
win-x64, Windows 10 22H2+ / Windows 11) and require no pre-installed .NET Runtime.
dotnet build JustCryptDns.sln -c Release
dotnet test JustCryptDns.sln -c Release --no-build
.\tools\Build-Release.ps1 -Version "1.8.7"| Data | Installed Mode | Portable Mode (portable.flag) |
|---|---|---|
| Settings & Backups | C:\ProgramData\JustCryptDns\settings.json (backups\) |
<AppDir>\data\settings.json |
| Logs (Serilog rolling) | C:\ProgramData\JustCryptDns\logs\ (ui-*.log, service-*.log) |
<AppDir>\data\logs\ |
| Update Staging | %LOCALAPPDATA%\JustCryptDns\updates\ |
%LOCALAPPDATA%\JustCryptDns\updates\ (or portable cache) |
Zero telemetry is collected. Nothing leaves your computer.
Released under the MIT License.






