Repair DNS Cache Staleness

    by Mariusz Wrzeszczynski

    1

    Repair ignored DNS TTLs, startup-only resolution, stale endpoint reuse, retry-to-same-address loops, discovery refresh stampedes, and DNS/pool confusion.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Our Go service calls an internal API by hostname. We added a custom DNS cache six months ago; it resolves once and keeps the IP until process restart. After blue/green deploys the old backend is removed, but long-lived processes continue dialing the retired IP and fail until restarted. The HTTP transport also keeps idle connections, so we need to distinguish DNS staleness from pooled connections. Repair locally with a fake resolver and two local HTTP endpoints. Use the DNS TTL supplied by the test fixture; do not query production DNS, change real TTLs, disable caching, or blindly retry POST requests.

    Your agent does

    DNS cache staleness found. The application resolves once and retains the address until restart, while HTTP connection reuse is a separate lifecycle. The repair honors the supplied TTL, coalesces refresh, rotates address generations, separates DNS from pooling, and adds deterministic A-to-B endpoint tests. Production DNS and resolver behavior remain unverified.

    What you get

    Eliminate stale IP pinning after service failovers or rollouts.Implement TTL-aware caching for custom service discovery wrappers.Prevent DNS storms using refresh coalescing and single-flight logic.Verify address rotation in CI with fake clocks and local endpoints.

    About this skill

    DNS and service-discovery failures are often application lifecycle bugs: a custom resolver caches one IP forever, failed endpoints stay selectable, retries repeatedly choose the same dead address, or every caller triggers an emergency refresh at once.

    Repair DNS Cache Staleness gives an AI coding agent a repository workflow for tracing resolution ownership, TTL/expiry behavior, address generations, connection-pool interaction, failed-address handling, refresh coalescing, and retry safety. It proves address rotation with fake clocks and local endpoints.

    It does not query or change production DNS, flush live caches, disable caching globally, or invent TTL values.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops