mosdns is an extensive DNS forwarder. Users can customize their DNS handling logic on demand. mosdns comes with: - Matcher: - Match request pattern: domain, type, source IP, etc. - Match response pattern: response IP, CNAME, etc. - Functions: - UDP, TCP, DoT, DoH (H3 supported), DoQ Client and Server. - Cached responses (ECS not supported). - Automatically determines if a domain name is a dual-stack domain and then blocks IPv4/6 requests without affecting pure IPv6/4 domains. - Append preset ECS to requests. - Modify the TTL of the response. - Set IP for the domain name.(hosts) - Return a response with a specific IP. (blackhole) - Replace (redirects) the requested domain name. Requested domain A but return a record for domain B. (redirect) (redirect) - Manually construct a response containing arbitrary records. (arbitrary) - Countercheck a mosdns-processed domain name with an IP. This can be done in response to a PTR request or through the HTTP interface. (reverse_lookup) - Dynamic routing: Write response IPs to ipset and nftables.
Technical details
Publisher
Irine Sistiana
Version
5.3.4
Release date
2026-01-11
License
GPL-3.0
Installer type
zip
Architecture
x64
Package ID
IrineSistiana.mosdns
Install mosdns from the command line
Install with Windows Package Manager
winget install --id=IrineSistiana.mosdns -e
Update to the latest version
winget upgrade --id=IrineSistiana.mosdns -e
Uninstall
winget uninstall --id=IrineSistiana.mosdns -e
mosdns adds this command to the command line: mosdns.
Yes. mosdns is free and open-source software released under the GPL-3.0 license.
What is the latest version of mosdns?
The latest version is 5.3.4, released on Jan 11, 2026.
Is it safe to download mosdns?
The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with 3d55b6647e632ad86a1d86e7cf21b96bb63adfde3b4ffdc098c9af79381638ca.
Which Windows versions does mosdns support?
mosdns runs on Windows and is available for 64-bit (x64) systems.
How do I uninstall mosdns?
Open Settings › Apps › Installed apps, find mosdns and select Uninstall. From the command line, run winget uninstall --id=IrineSistiana.mosdns -e.
Is there a portable version of mosdns?
Yes. mosdns is available as a portable ZIP archive (mosdns-windows-amd64.zip, 64-bit (x64)) that runs without installation. Copy it to any folder or USB drive and run it from there.
Alternatives to mosdns
Other Networking programs for Windows from different developers.
A cross platform local DNS server (Dnsmasq like) written in Rust to obtain the fastest website IP for the best Internet experience, supports DoT, DoQ, DoH, DoH3.