mosdns

mosdns 5.3.4

A DNS forwarder

  • By Irine Sistiana
  • Open Source
  • Portable
  • Updated Jan 11, 2026
Download for Windows

About mosdns

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

PublisherIrine Sistiana
Version5.3.4
Release date2026-01-11
LicenseGPL-3.0
Installer typezip
Architecturex64
Package IDIrineSistiana.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.

dnsnetwork

mosdns version history

5.3.3 Aug 14, 2024

Frequently asked questions

Is mosdns free?

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.