Skip to main content

CLI Mode

Starting with v3.0.0, DNS-MNS supports full non-interactive CLI mode via subcommands and flags. This is perfect for scripting, automation, and CI/CD pipelines.

Commands

Test DNS Servers

Available categories: international, regional, gaming, vpn, additional, all

Smart Recommendation

Test Encrypted DNS

Set / Clear DNS

Live Dashboard

Launches a live-updating TUI that monitors DNS server health, shows current DNS configuration, and proxy status.

Auto-Update

Checks GitLab for new releases and self-updates the binary.
Windows Users: The update process handles Windows file locking automatically. The binary will restart itself after the update completes.

System Diagnostics

Runs comprehensive system diagnostics to help troubleshoot issues:
  • System Info: OS version, architecture, Go version
  • Permissions: Administrator/root status
  • Network: Interface configuration, current DNS settings
  • DNS Capabilities: Ping tests, DNS query tests
  • Platform-Specific: systemd-resolved, NetworkManager (Linux), PowerShell version (Windows)
Use this when experiencing issues and include the output in bug reports.

OpenWrt Router Commands

See OpenWrt Router Support for detailed setup instructions.

Advanced Evasion Suite

Use sing-box for advanced proxy protocols (VLESS, VMess, Trojan, Hysteria2, ShadowTLS, TUIC):

Advanced Proxy (Sing-box)

Supports protocols: vless, vmess, trojan, hysteria2, shadowtls, tuic

Tunnel Suite (DNSTT / Slipstream / Paqet)

DNS-MNS includes a unified tunnel command group:

Global Flags

The NO_COLOR environment variable is also respected.

JSON Output Examples

DNS Test Results

Recommendation Results

Scripting Examples

Find the best DNS and set it automatically

Monitor DNS health in a cron job