# reddig **Repository Path**: 0ldm0s/reddig ## Basic Information - **Project Name**: reddig - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-16 - **Last Updated**: 2026-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # reddig ๐Ÿ›ฐ๏ธ > **Red Alert DNS Intelligence Gathering** > A modern DNS lookup tool inspired by Red Alert - dig reimagined with better UX ## ๐ŸŽฏ Features - ๐Ÿš€ **High Performance**: Based on `rat_quickdns` library, supports UDP/TCP/DoH/DoT protocols - ๐ŸŽจ **User-Friendly**: Colorful output, table formatting, more readable than traditional dig - ๐ŸŽฎ **Red Alert Easter Eggs**: Startup prompts and error messages with Red Alert style - ๐Ÿ“Š **Performance Testing**: Built-in multi-server performance comparison - ๐Ÿ”’ **DNSSEC Support**: Full DNSSEC validation and status display - ๐Ÿ“‹ **Multiple Outputs**: Table, JSON, concise, dig-compatible formats - โšก **Smart Optimization**: Automatically selects optimal DNS server and protocol ## ๐Ÿš€ Quick Start ### Basic Queries ```bash # Query A record (default) reddig google.com # Query IPv6 address reddig google.com --type AAAA # Query MX record reddig google.com --type MX # Query all common records reddig google.com --all ``` ### Specify DNS Server ```bash # Use Google DNS reddig google.com --server 8.8.8.8 # Use Cloudflare DNS reddig google.com --server 1.1.1.1 ``` ### Protocol Selection ```bash # Use TCP protocol reddig google.com --protocol tcp # Use DNS over HTTPS reddig google.com --protocol doh # Use DNS over TLS reddig google.com --protocol dot ``` ### Performance Testing ```bash # Test multiple DNS servers reddig google.com --benchmark # Show detailed statistics reddig google.com --stats ``` ### DNSSEC Validation ```bash # Enable DNSSEC validation reddig cloudflare.com --dnssec # Detailed DNSSEC info reddig cloudflare.com --dnssec --verbose ``` ## ๐Ÿ“‹ Command Line Options ### Basic Options - `DOMAIN` - Domain to query - `-t, --type ` - DNS record type (A, AAAA, CNAME, MX, TXT, NS, PTR, SRV, SOA) - `-s, --server ` - DNS server address - `-p, --protocol ` - Protocol (udp, tcp, doh, dot, auto) ### Query Options - `-a, --all` - Query all common record types - `-b, --benchmark` - Performance test mode - `-x, --reverse` - Reverse DNS lookup - `--timeout ` - Query timeout (default 5s) - `--retry ` - Retry count (default 2) ### DNSSEC Options - `--dnssec` - Enable DNSSEC validation - `--client-subnet ` - Client subnet (EDNS) - `--no-cache` - Disable cache ### Output Options - `-f, --format ` - Output format (table, json, short, dig, verbose) - `-q, --quiet` - Quiet mode (disable easter eggs) - `-v, --verbose` - Verbose mode - `--stats` - Show query statistics ### Network Options - `--tcp` - Use TCP protocol (same as --protocol tcp) - `-4, --ipv4` - IPv4 only - `-6, --ipv6` - IPv6 only - `--trace` - Trace DNS query path ## ๐ŸŽจ Output Examples ### Default Table Format ``` ๐Ÿ›ฐ๏ธ Reinforcement: Satellite Uplink Established! โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ“ก Standard Radar: UDP Transmission Active ๐ŸŽฏ DNS Query Results for google.com โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• ๐Ÿ“‹ A Records: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Type โ”‚ Value โ”‚ TTL โ”‚ Details โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ A โ”‚ 142.250.191.14 โ”‚ 5m โ”‚ (IPv4) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โœ… Mission Accomplished! ``` ### JSON Format ```bash reddig google.com --format json ``` ```json { "domain": "google.com", "record_type": "A", "protocol": "UDP", "server_used": "8.8.8.8", "total_time_ms": 45, "responses": [ { "success": true, "records": [ { "name": "google.com", "type": "A", "value": "142.250.191.14", "ttl": 300 } ], "duration_ms": 45 } ] } ``` ### Performance Test Output ``` ๐Ÿ”ฅ Initiating Multi-Vector DNS Strike! โš”๏ธ Testing All Available Uplinks... ๐Ÿ”„ Switching to Uplink: Google DNS โœ… Google DNS responded in 23ms ๐Ÿ”„ Switching to Uplink: Cloudflare DNS โœ… Cloudflare DNS responded in 18ms ๐Ÿ”„ Switching to Uplink: Alibaba DNS โœ… Alibaba DNS responded in 31ms ๐Ÿ† Fastest Server: Cloudflare DNS (18ms) ๐Ÿ“Š Battle Report: ๐ŸŽฏ Queries Executed: 6 โฑ๏ธ Total Mission Time: 156ms โšก Performance Rating: Lightning Fast! ``` ## ๐Ÿ”ง Advanced Usage ### Batch Query Different Record Types ```bash # Query all domain info reddig example.com --all --verbose ``` ### Secure Query Using DoH ```bash # Use Cloudflare DoH reddig example.com --protocol doh --server https://cloudflare-dns.com/dns-query # Use Alibaba DoH reddig example.com --protocol doh --server https://dns.alidns.com/dns-query ``` ### EDNS Client Subnet ```bash # Specify client IP for CDN optimization reddig cdn.example.com --client-subnet 1.2.3.4 ``` ### Reverse DNS Query ```bash # Query domain for IP reddig 8.8.8.8 --reverse ``` ## ๐ŸŽฎ Red Alert Easter Eggs reddig is full of Red Alert style easter eggs: - **Startup**: "๐Ÿ›ฐ๏ธ Reinforcement: Satellite Uplink Established!" - **Error**: "๐Ÿ’ฅ Unit Lost!" or "๐Ÿ“ก Signal Interrupted!" - **Success**: "โœ… Mission Accomplished!" - **Protocol Switch**: "๐Ÿ“ก Standard Radar: UDP Transmission Active" - **Performance Test**: "๐Ÿ”ฅ Initiating Multi-Vector DNS Strike!" - **DNSSEC**: "๐Ÿ”’ Security Protocols: DNSSEC Verification Passed!" Use `--quiet` to disable all easter eggs. ## ๐Ÿ†š Comparison with dig | Feature | dig | reddig | |---------|-----|--------| | Basic Query | `dig google.com` | `reddig google.com` | | Specify Server | `dig @8.8.8.8 google.com` | `reddig google.com --server 8.8.8.8` | | Query Type | `dig google.com MX` | `reddig google.com --type MX` | | TCP Protocol | `dig +tcp google.com` | `reddig google.com --tcp` | | Concise Output | `dig +short google.com` | `reddig google.com --format short` | | JSON Output | โŒ | `reddig google.com --format json` | | Performance Test | โŒ | `reddig google.com --benchmark` | | Color Output | โŒ | โœ… Default | | DoH/DoT | Complex config | `--protocol doh/dot` | ## ๐Ÿ™ Acknowledgments - [rat_quickdns](../rat_quickdns) - Powerful DNS resolution library - [clap](https://github.com/clap-rs/clap) - Command line parsing - [colored](https://github.com/mackwic/colored) - Color output - [tabled](https://github.com/zhiburt/tabled) - Table formatting - "Red Alert" - Creative inspiration --- **"Commander, the network is under your control!"** ๐ŸŽฎ [ไธญๆ–‡ๆ–‡ๆกฃ](README.cn.md) | [ๆ—ฅๆœฌ่ชžใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆ](README.jp.md)