mosdns logo

mosdns Irine Sistiana

Use this command to install mosdns:
winget install --id=IrineSistiana.mosdns -e

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.

mosdns is a powerful DNS forwarder designed to provide users with extensive control over their DNS handling logic. It enables customization of DNS queries and responses based on specific rules and patterns, offering flexibility for advanced network management.

Key Features:

  • Matcher: Analyze DNS requests and responses using predefined criteria such as domain names, record types, source IPs, or response content.
  • Protocols Support: Handle DNS over UDP, TCP, DoT (DNS-over-TLS), DoH (DNS-over-HTTPS) with H3 support, and DoQ (DNS-over-QUIC).
  • Response Handling: Cache responses, modify TTL values, set IPs for domain names, create blackhole routes, and redirect queries.
  • Dynamic Routing: Route DNS traffic by writing response IPs to ipset or nftables for advanced network control.
  • Reverse Lookup: Perform reverse lookups via PTR requests or HTTP interfaces.
  • Advanced Features: Automatically detect dual-stack domains, append ECS (EDNS Client Subnet), and manually construct arbitrary responses.

Audience & Benefits:

Ideal for network administrators, security professionals, and organizations requiring granular control over DNS traffic. Mosdns enhances network performance, improves security through filtering and blocking capabilities, and provides flexibility in managing DNS resolution to meet specific organizational needs.

Mosdns can be installed via winget, ensuring seamless integration into your existing infrastructure.

README

mosdns

功能概述、配置方式、教程等,详见: wiki

下载预编译文件、更新日志,详见: release

docker 镜像: docker hub

Versions
5.3.3
Website
License