Pulse/pkg
rcourtman c93581e1aa Add DNS caching to reduce excessive DNS queries
Related to #608

Implements DNS caching using rs/dnscache to dramatically reduce DNS query
volume for frequently accessed Proxmox hosts. Users were reporting 260,000+
DNS queries in 37 hours for the same hostnames.

Changes:
- Added rs/dnscache dependency for DNS resolution caching
- Created pkg/tlsutil/dnscache.go with DNS cache wrapper
- Updated HTTP client creation to use cached DNS resolver
- Added DNSCacheTimeout configuration option (default: 5 minutes)
- Made DNS cache timeout configurable via:
  - system.json: dnsCacheTimeout field (seconds)
  - Environment variable: DNS_CACHE_TIMEOUT (duration string)
- DNS cache periodically refreshes to prevent stale entries

Benefits:
- Reduces DNS query load on local DNS servers by ~99%
- Reduces network traffic and DNS query log volume
- Maintains fresh DNS entries through periodic refresh
- Configurable timeout for different network environments

Default behavior: 5-minute cache timeout with automatic refresh
2025-11-05 18:25:38 +00:00
..
agents Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
discovery Update Pulse install flow and related components 2025-10-21 19:58:53 +00:00
pbs Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
pmg Improve PMG metric ingestion refs #551 2025-10-22 18:15:27 +00:00
proxmox Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
tlsutil Add DNS caching to reduce excessive DNS queries 2025-11-05 18:25:38 +00:00