agentsclimarketplace

Dns architecture

Skill sairam0424/MindForge/.mindforge/skills/dns-architecture

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.From the repository description

Install
npx -y skills add sairam0424/MindForge --skill dns-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.4 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Skill — DNS Architecture

When this skill activates

Any task involving DNS-based traffic management, load balancing via DNS, failover strategies, GeoDNS routing, service discovery using DNS, or TTL optimization for high-availability systems.

Mandatory actions when this skill is active

Before writing any code

  1. Map the DNS resolution chain (client → resolver → authoritative → response).
  2. Identify failover requirements (RTO target determines TTL).
  3. Decide routing strategy (round-robin, weighted, latency, geo, failover).
  4. Determine health check mechanism for DNS-managed endpoints.

During implementation

  • Set TTL appropriate to failover speed requirements.
  • Implement health checks for all DNS-managed endpoints.
  • Use anycast for latency-critical global services.
  • Configure both primary and secondary DNS providers for resilience.
  • Document propagation delays for operational runbooks.
  • Never rely on DNS as sole load balancer for sub-second failover.

After implementation

  • Verify health checks remove unhealthy endpoints within TTL window.
  • Test failover scenario end-to-end (kill primary, measure recovery time).
  • Confirm GeoDNS routes correctly from each target region.
  • Monitor DNS resolution latency and error rates.
  • Validate TTL behavior in major resolvers (Google, Cloudflare, ISP).

DNS Load Balancing

Strategies

StrategyHow It WorksBest For
Round-robinRotate through A recordsSimple distribution
WeightedAssign weight per endpointCanary, capacity differences
Latency-basedRoute to lowest-latency endpointGlobal services
FailoverPrimary/secondary with health checkHA with clear primary
GeoRoute by resolver geographyData sovereignty, latency

Limitations

  • DNS caching means changes take TTL seconds to propagate.
  • Client-side caching may ignore TTL (some browsers cache 60s minimum).
  • Cannot do sub-second failover via DNS alone.
  • Resolver location != user location (use EDNS Client Subnet to improve).

GeoDNS

How It Works

  1. DNS query arrives at authoritative server.
  2. Server determines resolver's geographic location (via IP geolocation).
  3. Returns IP address of nearest datacenter.
  4. EDNS Client Subnet (ECS) improves accuracy by passing client subnet.

Configuration

# Example GeoDNS policy
api.example.com:
  default: us-east-1.api.example.com
  EU: eu-west-1.api.example.com
  APAC: ap-southeast-1.api.example.com
  fallback: us-east-1.api.example.com  # if region unhealthy

Considerations

  • Resolver location != user location (corporate DNS, VPN users).
  • ECS support improves accuracy but not universally supported.
  • Always have fallback for unresolvable regions.
  • Test from each target region to verify correct routing.

TTL Strategy

TTL Decision Framework

ScenarioRecommended TTLReason
Fast failover needed30-60 secondsQuick removal of unhealthy
Normal operation300 seconds (5 min)Balance between freshness and cache
Static content CDN3600 seconds (1 hour)Rarely changes, maximize cache
During migration60 secondsPrepare for cutover
After migration stable300-3600 secondsReturn to normal caching

TTL Trade-offs

  • Low TTL (30s): Fast failover, more DNS queries, higher authoritative load.
  • High TTL (3600s): Fewer queries, better cache hit rate, slow failover.
  • Strategy: Lower TTL before planned changes, raise after stability confirmed.

Propagation Reality

  • TTL expiry != instant propagation.
  • Some resolvers enforce minimum TTL (30s-60s).
  • Browser DNS cache may ignore TTL entirely.
  • Java apps cache DNS indefinitely by default (set networkaddress.cache.ttl).

Service Discovery via DNS

Internal Service Discovery

  • Use internal DNS zone (e.g., service.internal).
  • SRV records provide port discovery alongside host.
  • Short TTL (5-15s) for dynamic service registration.

SRV Records

_http._tcp.api.internal. 15 IN SRV 10 100 8080 api-pod-1.internal.
_http._tcp.api.internal. 15 IN SRV 10 100 8080 api-pod-2.internal.

Kubernetes DNS

  • Service discovery built-in: service-name.namespace.svc.cluster.local.
  • Headless services return individual pod IPs.
  • ExternalName services alias external endpoints.

Anycast DNS

How It Works

  • Multiple servers advertise the same IP address via BGP.
  • Network routes traffic to the nearest server (by BGP path).
  • If one server goes down, BGP re-routes to next nearest.

Use Cases

  • Authoritative DNS servers (Cloudflare, Route53).
  • CDN edge nodes.
  • DDoS mitigation (absorb attack across multiple PoPs).

Considerations

  • Failover speed depends on BGP convergence (seconds to minutes).
  • TCP connections break on route change (DNS is UDP, so usually fine).
  • Not suitable for stateful protocols without session persistence.

Health Checks

DNS Health Check Pattern

  1. Health checker probes endpoints at regular intervals (10-30s).
  2. If endpoint fails N consecutive checks, remove from DNS response.
  3. Continue probing. If endpoint recovers, add back after M consecutive successes.
  4. Removal takes effect within TTL seconds (resolver cache expiry).

Health Check Types

TypeChecksUse For
TCPPort openBasic availability
HTTPStatus 200 + body matchApplication health
HTTPSValid cert + statusFull stack health
CustomBusiness logic probeApplication-specific

Timing

  • Check interval: 10-30 seconds.
  • Failure threshold: 2-3 consecutive failures.
  • Recovery threshold: 2-3 consecutive successes.
  • Effective failover time: check_interval × failure_threshold + TTL.

Self-check

  • TTL set appropriate to failover speed requirement.
  • Health checks configured for all DNS-managed endpoints.
  • Failover tested end-to-end (measured recovery time).
  • GeoDNS verified from target regions.
  • Secondary DNS provider configured for resilience.
  • Propagation delays documented in runbook.
  • Client-side DNS caching behavior accounted for.
  • Monitoring in place for resolution latency and errors.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,614. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.