Ad

DNSAgent: Hosts replacement with regex

DNSAgent quickly redirects domain names using regular expressions. It acts as a local DNS proxy that can cache responses and support IPv4/IPv6, offering flexible configuration for custom name resolution.
Screenshot of stackia/DNSAgent homepage

DNSAgent is a C# application that functions as a local DNS proxy, providing a flexible alternative to modifying the system's hosts file. It intercepts DNS queries and redirects them based on defined rules. The primary objective is to offer powerful and customizable domain name resolution, leveraging regular expressions for pattern matching. It utilizes a local cache to improve performance and reduce DNS query latency.

DNSAgent's key feature is its support for regular expressions in defining redirection rules. It provides both IPv4 and IPv6 address resolution and allows for custom port specification. The inclusion of HttpDNS querying and compression pointer mutation are notable features, enhancing its flexibility and security. The well-defined configuration files and the provided Dnsmasq conversion tool contribute to a smooth user experience.

  • Regular Expression Matching: Allows complex domain name pattern matching for redirection and resolution. This provides a high degree of customization for DNS routing logic.
  • IPv4/IPv6 Support: Handles both IPv4 and IPv6 addresses, ensuring compatibility with modern network environments and supporting a wide range of targets.
  • Local Caching: Reduces latency and load on external DNS servers by caching DNS responses based on configurable TTL settings.
  • Source IP Whitelisting: Enhances security by allowing filtering of requests from unauthorized clients, preventing misuse or malicious activity.
  • HttpDNS Querying: Supports querying external DNS servers via the DNSPod HttpDNS protocol, offering flexibility in DNS resolution.
  • Configuration via JSON: Uses standard JSON configuration files for easy modification and automation.
  • Windows Service Installation: Can be installed as a Windows service for automatic execution and persistent DNS proxy functionality.

DNSAgent is an archived project, indicating that active development and maintenance have ceased. The last commit was in 2020, suggesting it may not be compatible with the latest operating systems or security updates. However, the well-defined architecture, clear documentation, and extensive configuration options demonstrate a mature design. While not actively maintained, the project provides a functional and well-tested solution for its intended purpose.

DNSAgent benefits users who require localized DNS resolution with advanced control over domain name redirection and caching. It's suitable for scenarios needing dynamic updates, local testing environments, or customized routing rules beyond standard DNS configuration. While archived, the project offers a powerful and versatile solution for advanced DNS management where alternative solutions may lack granular control.

Languages:
Summarize:
Share:
Stars
616
Forks
85
Issues
22
Created
11 years ago
Commit
6 years ago
License
MIT
Archived
Yes
Updated 4 days ago

Similar Repositories