DNS-based Agent Identification and Discovery - Reference Implementation
Project description
DNS-AID
DNS-based Agent Identification and Discovery
Reference implementation for IETF draft-mozleywilliams-dnsop-bandaid-02.
DNS-AID enables AI agents to discover each other via DNS, using the internet's existing naming infrastructure instead of centralized registries or hardcoded URLs.
Doc Freshness: Reviewed for DNS-AID v0.10.0 on March 2, 2026.
New to DNS-AID? Start with the QuickStart for the fastest path, then use the Getting Started Guide for full setup and backend details.
Documentation
- QuickStart
- Installation Matrix
- Backend Minimum Config Snippets
- CLI Command Matrix
- Verify Scoring and High Verify Gates
- Getting Started Guide
- API Reference
Agent Directory
Browse and discover DNS-AID published agents:
๐ Web Directory: directory.velosecurity-ai.io ๐ API Documentation: api.velosecurity-ai.io/api/v1/docs
The directory indexes agents discovered via DNS and provides:
- Search - Find agents by name, domain, or capabilities (full-text search)
- Filter - Filter by protocol, category, capabilities, and security score
- Connect - Copy-paste config for Claude Desktop, Cursor, or SDK
- Metadata - Transport, auth type, structured capabilities with action intents (v0.10.0+)
- Lifecycle - Deprecated/sunset status and successor agent routing (v0.10.0+)
- Trust Scores - Composite scoring from DNSSEC, telemetry reliability, and community usage
- Company Profiles - Display company metadata (logo, website, description)
- Auto-crawl - Agents indexed immediately after domain verification
Quick Start
Install
# Most common path: Core + CLI + MCP from GitHub
pip install "dns-aid[cli,mcp] @ git+https://github.com/infobloxopen/dns-aid-core.git"
For the full install matrix (GitHub now vs PyPI status, monorepo, backend extras), see docs/install.md.
Python Library
import dns_aid
# Publish your agent to DNS
await dns_aid.publish(
name="my-agent",
domain="example.com",
protocol="mcp",
endpoint="agent.example.com",
capabilities=["chat", "code-review"]
)
# Discover agents at a domain (pure DNS - default)
agents = await dns_aid.discover("example.com")
for agent in agents:
print(f"{agent.name}: {agent.endpoint_url}")
# Discover via HTTP index (ANS-compatible, richer metadata)
agents = await dns_aid.discover("example.com", use_http_index=True)
# Verify an agent's DNS records
result = await dns_aid.verify("_my-agent._mcp._agents.example.com")
print(f"Security Score: {result.security_score}/100")
SDK: Invoke Agents & Capture Telemetry (v0.6.0+)
import dns_aid
# Discover + invoke in one line โ telemetry captured automatically
result = await dns_aid.discover("example.com", protocol="mcp")
agent = result.agents[0]
resp = await dns_aid.invoke(agent, method="tools/list")
print(f"Latency: {resp.signal.invocation_latency_ms}ms")
print(f"Status: {resp.signal.status}")
print(f"Tools: {resp.data}")
# Rank multiple agents by performance
ranked = await dns_aid.rank(result.agents, method="tools/list")
for r in ranked:
print(f"{r.agent_fqdn}: score={r.composite_score:.1f}")
# Fetch community-wide rankings from telemetry API (v0.6.0+)
from dns_aid.sdk import AgentClient, SDKConfig
config = SDKConfig(telemetry_api_url="https://api.velosecurity-ai.io")
async with AgentClient(config) as client:
rankings = await client.fetch_rankings(limit=10)
for r in rankings:
print(f"{r['agent_fqdn']}: {r['composite_score']}")
For advanced usage (connection reuse, OTEL export):
from dns_aid.sdk import AgentClient, SDKConfig
config = SDKConfig(
otel_enabled=True, # Export to OpenTelemetry
caller_id="my-app",
http_push_url="https://api.velosecurity-ai.io/api/v1/telemetry/signals",
)
async with AgentClient(config=config) as client:
resp = await client.invoke(agent, method="tools/call", arguments={...})
fqdns = [a.fqdn for a in agents]
ranked = client.rank(fqdns) # Rank by local telemetry signals
CLI Usage
See CLI Command Matrix for a concise table of commands, backend requirements, and examples.
# Publish an agent to DNS
dns-aid publish \
--name my-agent \
--domain example.com \
--protocol mcp \
--endpoint agent.example.com \
--capability chat \
--capability code-review
# Publish with transport and auth metadata (v0.10.0+)
dns-aid publish \
--name billing \
--domain example.com \
--protocol mcp \
--endpoint mcp.example.com \
--capability billing --capability invoicing \
--transport streamable-http \
--auth-type bearer
# Publish with BANDAID custom SVCB parameters (v0.4.8+)
dns-aid publish \
--name booking \
--domain example.com \
--protocol mcp \
--endpoint mcp.example.com \
--capability travel --capability booking \
--cap-uri https://mcp.example.com/.well-known/agent-cap.json \
--cap-sha256 dGVzdGhhc2g \
--bap "mcp/1,a2a/1" \
--policy-uri https://example.com/agent-policy \
--realm production
# Discover agents at a domain (pure DNS - default)
dns-aid discover example.com
# Discover with filters
dns-aid discover example.com --protocol mcp --name chat
# Discover via HTTP index (ANS-compatible, richer metadata)
dns-aid discover example.com --use-http-index
# Output as JSON
dns-aid discover example.com --json
# Verify DNS records
dns-aid verify _my-agent._mcp._agents.example.com
# List DNS-AID records in a zone
dns-aid list example.com
# List available zones (Route 53)
dns-aid zones
# Delete an agent
dns-aid delete --name my-agent --domain example.com --protocol mcp
# Index Management (v0.3.0+)
# List agents in a domain's index record
dns-aid index list example.com
# Sync index with actual DNS records (useful for repair)
dns-aid index sync example.com
# Publish without updating the index (for internal agents)
dns-aid publish --name internal-bot --domain example.com --protocol mcp --no-update-index
# Domain Submission to Agent Directory (v0.4.0+)
# Submit your domain for crawling and indexing
dns-aid submit example.com
# Submit with company metadata
dns-aid submit example.com \
--company-name "Example Corp" \
--company-website "https://example.com" \
--company-description "We build AI agents"
Agent Index Records
DNS-AID v0.3.0 automatically maintains an index record at _index._agents.{domain} for efficient discovery:
_index._agents.example.com. TXT "agents=chat:mcp,billing:a2a,support:https"
Benefits:
- Single DNS query discovers all agents at a domain
- Crawlers can efficiently index domains
- Explicit list of published agents (no guessing)
The index is updated automatically when you publish or delete agents. Use --no-update-index to opt out for internal agents.
HTTP Index Discovery (ANS-Compatible)
DNS-AID also supports HTTP-based agent discovery for compatibility with ANS-style systems. This provides richer metadata (descriptions, model cards, capabilities, costs) while still validating endpoints via DNS.
Endpoint patterns tried (in order):
https://index.aiagents.{domain}/index-wellknown(demo-friendly, no underscores)https://_index._aiagents.{domain}/index-wellknown(ANS-style)https://{domain}/.well-known/agents-index.json(well-known path)
Capability Document endpoint (v0.4.8+):
https://index.aiagents.{domain}/cap/{agent-name}โ returns a capability document JSON per agent
# Fetch HTTP index directly
curl https://index.aiagents.highvelocitynetworking.com/index-wellknown
# Fetch capability document for a specific agent
curl https://index.aiagents.highvelocitynetworking.com/cap/booking-agent
# CLI with HTTP index
dns-aid discover highvelocitynetworking.com --use-http-index
# Python with HTTP index
agents = await dns_aid.discover("highvelocitynetworking.com", use_http_index=True)
| Discovery Method | When to Use |
|---|---|
| DNS (default) | Maximum decentralization, offline caching, minimal round trips |
| HTTP Index | Rich metadata upfront, ANS compatibility, model cards, capabilities, direct endpoints |
FQDN as Source of Truth (v0.4.7): The HTTP index only needs to provide each agent's FQDN (e.g., _booking._mcp._agents.example.com). Agent name and protocol are extracted from the FQDN โ no separate protocols field needed. DNS SVCB lookup then resolves the authoritative endpoint.
Discovery Transparency (v0.4.6+): Each discovered agent includes source fields showing how data was resolved:
| Field | Values | Description |
|---|---|---|
endpoint_source |
dns_svcb, http_index_fallback, direct |
How the endpoint was resolved |
capability_source |
cap_uri, txt_fallback, none |
How capabilities were discovered (v0.4.8+) |
Capability Resolution (v0.4.8+): Capabilities are resolved with the following priority:
- SVCB
capURI โ fetch capability document (JSON with capabilities, version, description) - TXT record fallback โ
capabilities=chat,supportfrom DNS TXT record - HTTP Index inline โ capabilities embedded in the index JSON response
MCP Server
DNS-AID includes an MCP (Model Context Protocol) server that allows AI agents like Claude to publish and discover other agents.
Running the MCP Server
# Run with stdio transport (default - for Claude Desktop, etc.)
dns-aid-mcp
# Run with HTTP transport
dns-aid-mcp --transport http --port 8000
Available MCP Tools
| Tool | Description |
|---|---|
publish_agent_to_dns |
Publish an AI agent to DNS (auto-updates index) |
discover_agents_via_dns |
Discover AI agents at a domain (supports use_http_index for ANS-compatible discovery) |
list_agent_tools |
List available tools on a discovered MCP agent |
call_agent_tool |
Call a tool on a discovered MCP agent (proxy requests) |
verify_agent_dns |
Verify DNS-AID records and security |
list_published_agents |
List all agents in a domain |
delete_agent_from_dns |
Remove an agent from DNS (auto-updates index) |
list_agent_index |
List agents in domain's index record |
sync_agent_index |
Sync index with actual DNS records |
diagnose_environment |
Run environment diagnostics (deps, DNS, backends) |
Claude Desktop Integration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"dns-aid": {
"command": "dns-aid-mcp"
}
}
}
Then Claude can discover and connect to AI agents:
"Find available agents at example.com"
"Publish my chat agent to DNS at mycompany.com"
"Discover agents at highvelocitynetworking.com and search for flights from SFO to JFK"
Live Demo
Try the live demo with Claude Desktop:
{
"mcpServers": {
"dns-aid": {
"command": "python",
"args": ["-m", "dns_aid.mcp.server"]
}
}
}
Then ask Claude to discover and use the booking agent:
"Discover agents at highvelocitynetworking.com using HTTP index, find a booking agent, and search for flights from SFO to JFK on March 15th 2026"
Claude will:
- Call
discover_agents_via_dnsโ finds booking-agent athttps://booking.highvelocitynetworking.com/mcp - Call
list_agent_toolsโ sees search_flights, get_flight_details, check_availability, create_reservation - Call
call_agent_toolโ searches for flights and returns results
How It Works
DNS-AID uses SVCB records (RFC 9460) to advertise AI agents:
_chat._a2a._agents.example.com. 3600 IN SVCB 1 chat.example.com. alpn="a2a" port=443 mandatory="alpn,port"
_chat._a2a._agents.example.com. 3600 IN TXT "capabilities=chat,assistant" "version=1.0.0"
BANDAID Custom SVCB Parameters (v0.4.8+): Per the IETF draft, SVCB records can carry additional custom parameters for richer agent metadata:
_booking._mcp._agents.example.com. SVCB 1 mcp.example.com. alpn="mcp" port=443 \
cap="https://mcp.example.com/.well-known/agent-cap.json" \
cap-sha256="dGVzdGhhc2g" bap="mcp/1,a2a/1" \
policy="https://example.com/agent-policy" realm="production"
| Parameter | Purpose |
|---|---|
cap |
URI to capability document (rich JSON metadata) |
cap-sha256 |
SHA-256 digest of capability descriptor for integrity verification |
bap |
Supported bulk agent protocols with versioning |
policy |
URI to agent policy document |
realm |
Multi-tenant scope identifier |
This allows any DNS client to discover agents without proprietary protocols or central registries.
Discovery Flow (BANDAID Draft Aligned)
Agent A DNS Agent B
โ โ โ
โ "Find agents at โ โ
โ salesforce.com" โ โ
โ โ โ
โโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Step 1: Fetch HTTP Index (primary) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GET https://index.aiagents.salesforce.com/index-wellknown โ
โ Response: [{"fqdn":"_chat._a2a._agents.salesforce.com",...}] โ
โ โ
โ Fallback: Query TXT Index via DNS โ
โ Query: _index._agents.salesforce.com TXT โ
โ Response: "agents=chat:a2a,billing:mcp" โ
โโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Step 2: Query SVCB per agent โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ Query: _chat._a2a._agents.salesforce.com SVCB โ
โ Response: SVCB 1 chat.salesforce.com. alpn="a2a" port=443 โ
โ cap="https://chat.salesforce.com/.well-known/cap.json"โ
โ (DNSSEC validated) โ
โโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Step 2b: Fetch Capability Document (if cap URI present) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GET https://chat.salesforce.com/.well-known/cap.json โ
โ Response: {"capabilities":["chat","support"],"version":"1.0"} โ
โ (cap_sha256 integrity verified) โ
โโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Step 3: TXT Capabilities (fallback if no cap document) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ Query: _chat._a2a._agents.salesforce.com TXT โ
โ Response: "capabilities=chat,support" "version=1.0.0" โ
โโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ Connect to https://chat.salesforce.com:443 โ
Index Resolution Priority: HTTP index endpoint โ TXT index record โ common name probing.
Capability Resolution Priority: SVCB cap URI โ capability document โ TXT record fallback.
Each discovered agent includes endpoint_source and capability_source showing which path was used.
Agent Metadata Contract (v0.10.0+)
DNS discovery tells you WHERE an agent is. The Agent Metadata Contract tells you HOW to connect, WHAT it can do, and WHETHER it's still active.
Every DNS-AID agent can serve a .well-known/agent.json endpoint:
GET https://mcp.example.com/.well-known/agent.json
{
"aid_version": "1.0",
"identity": { "name": "billing", "version": "2.1.0", "deprecated": false },
"connection": { "protocol": "mcp", "transport": "streamable-http" },
"auth": { "type": "bearer", "header_name": "Authorization" },
"capabilities": {
"supports_streaming": true,
"actions": [
{ "name": "get_invoice", "intent": "query", "semantics": "read" },
{ "name": "process_payment", "intent": "transaction", "semantics": "write" }
]
}
}
Why this matters for orchestrators (LangGraph, CrewAI, etc.):
| Field | Orchestrator Decision |
|---|---|
intent: query |
Safe to call in parallel, cacheable |
intent: transaction |
Needs atomic execution, rollback on failure |
semantics: read |
Safe to retry on timeout |
semantics: write |
NOT safe to retry โ may duplicate side effects |
auth.type: oauth2 |
Needs token exchange before calling |
deprecated: true |
Route to successor_fqdn instead |
A2A Compatibility: Both DNS-AID and Google A2A use /.well-known/agent.json. The metadata fetcher auto-detects the format โ DNS-AID native (has aid_version key) or A2A Agent Card โ and normalizes both into the same metadata fields.
Architecture
Client-Side: Toolkit
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Agents โ โ Developers โ โ Infrastructure Ops โ
โ (Claude, etc.) โ โ โ โ โ
โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ โ โ
โ MCP Protocol โ CLI โ CLI / API
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DNS-AID TOOLKIT โ
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ MCP Server โ โ CLI โ โ Python Library โ โ
โ โ โ โ โ โ โ โ
โ โ โข publish_agent โ โ โข dns-aid โ โ โข dns_aid.publish() โ โ
โ โ โข discover_ โ โ publish โ โ โข dns_aid.discover() โ โ
โ โ agents โ โ โข dns-aid โ โ โข dns_aid.verify() โ โ
โ โ โข verify_agent โ โ discover โ โ โข dns_aid.invoke() โโโ Tier 1 SDK
โ โ โข list_agents โ โ โข dns-aid โ โ โข dns_aid.rank() โ โ
โ โ โข call_agent โ โ verify โ โ โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ CORE ENGINE โ โ
โ โ โ โ
โ โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ Publisher โ โ Discoverer โ โ Validator โ โ โ
โ โ โ โ โ โ โ โ โ โ
โ โ โ Create SVCB โ โ Query DNS โ โ โข DNSSEC validation โ โ โ
โ โ โ Create TXT โ โ Parse SVCB โ โ โข DANE/TLSA check โ โ โ
โ โ โ โ โ Return โ โ โข Endpoint health โ โ โ
โ โ โ โ โ endpoints โ โ โ โ โ
โ โ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ โ โ
โ โ โ โ โ โ โ
โ โโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DNS BACKEND ABSTRACTION โ
โ โ
โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โ
โ โ Route53 โ โ Infoblox โ โ DDNS โ โCloudflare โ โ Mock โ โ
โ โ (AWS) โ โ UDDI โ โ (RFC2136) โ โ โ โ (Testing) โ โ
โ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โ
โ โ โ โ โ โ โ
โโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DNS INFRASTRUCTURE โ
โ โ
โ Authoritative DNS servers hosting _agents.{domain} zones โ
โ with SVCB, TXT, and TLSA records secured by DNSSEC โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Server-Side: Agent Directory Pipeline
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AGENT DIRECTORY PIPELINE โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ CRAWLING โโโโถโ CURATION โโโโถโ INDEXING โโโโถโ SERVING โ โ
โ โ โ โ โ โ โ โ โ โ
โ โ DNS SVCB โ โ trust_score โ โ TSVECTOR โ โ REST API โ โ
โ โ HTTP Idx โ โ security_scoreโ โ full-text โ โ Search โ โ
โ โ .well- โ โ telemetry โ โ search โ โ Rankings โ โ
โ โ known/ โ โ scoring โ โ โ โ โ โ
โ โ agent.json โ โ โ โ โ โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ METADATA ENRICHMENT (Phase 5.5) โ โ
โ โ โ โ
โ โ GET /.well-known/agent.json โ โ
โ โ โโ "aid_version" present? โ Parse as DNS-AID AgentMetadata โ โ
โ โ โโ No? โ Try A2A Agent Card โ Transform to metadata fields โ โ
โ โ โ โ
โ โ Extracts: transport, auth, capabilities (intent/semantics), โ โ
โ โ lifecycle (deprecated, sunset_date, successor) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Choosing the Right Interface
DNS-AID provides three interfaces. Choose based on your use case:
Python Library
Best for: Application developers building agent discovery into their code.
import dns_aid
# Integrate directly into your Python application
agents = await dns_aid.discover("example.com", protocol="mcp")
| Use Case | Example |
|---|---|
| Building an AI agent that discovers other agents | Agent mesh applications |
| Embedding discovery into existing Python apps | Adding DNS-AID to a Flask/FastAPI service |
| Automated pipelines and scripts | CI/CD, scheduled publishing |
| Unit testing with mock backend | Testing without real DNS |
CLI Tool
Best for: Operators, DevOps, and quick manual operations.
dns-aid discover example.com --protocol mcp
| Use Case | Example |
|---|---|
| Manual publishing/discovery | Testing a new agent deployment |
| Shell scripts and automation | cron jobs, deployment scripts |
| Debugging and troubleshooting | Checking DNS records exist |
| Zone management | Listing agents, bulk operations |
MCP Server
Best for: AI assistants (Claude, etc.) that need DNS-AID capabilities.
dns-aid-mcp # Claude can now use DNS-AID tools
| Use Case | Example |
|---|---|
| Claude Desktop integration | "Find agents at salesforce.com" |
| AI-driven infrastructure | Agent self-registration and discovery |
| Natural language DNS management | "Publish my chat agent to DNS" |
| Building agentic workflows | Multi-agent orchestration |
Decision Matrix
| You want to... | Use |
|---|---|
| Build discovery into your Python app | Python Library |
| Run ad-hoc commands from terminal | CLI |
| Automate with shell scripts | CLI |
| Enable Claude/AI to manage DNS-AID | MCP Server |
| Test without real DNS | Python Library (with MockBackend) |
| Debug DNS record issues | CLI (dns-aid verify) |
DNS Backends
For copy/paste minimum environment blocks by provider, see Backend Minimum Config Snippets.
DNS-AID supports multiple DNS backends:
| Backend | Description | Status |
|---|---|---|
| Route 53 | AWS Route 53 | โ Production |
| Infoblox UDDI | Infoblox Universal DDI (cloud) | โ Production |
| DDNS | RFC 2136 Dynamic DNS (BIND, etc.) | โ Production |
| Cloudflare | Cloudflare DNS | โ Production |
| Mock | In-memory (testing) | โ Production |
| NIOS | Infoblox NIOS (on-prem) | ๐ง Planned |
Route 53 Setup
-
Configure AWS credentials:
export AWS_ACCESS_KEY_ID="your-access-key" export AWS_SECRET_ACCESS_KEY="your-secret-key" export AWS_DEFAULT_REGION="us-east-1" # Optional
Or use AWS CLI profiles:
aws configure # Or use a named profile export AWS_PROFILE="my-profile"
-
Verify zone access:
dns-aid zones -
Publish your agent:
dns-aid publish -n my-agent -d myzone.com -p mcp -e mcp.myzone.com
Infoblox UDDI Setup
Infoblox UDDI (Universal DDI) is Infoblox's cloud-native DDI platform. DNS-AID supports creating SVCB and TXT records via the Infoblox API.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
INFOBLOX_API_KEY |
Yes | - | Infoblox UDDI API key from Cloud Portal |
INFOBLOX_DNS_VIEW |
No | default |
DNS view name (zones exist within views) |
INFOBLOX_BASE_URL |
No | https://csp.infoblox.com |
API base URL |
Step-by-Step Setup
-
Get your API key from Infoblox Cloud Portal:
- Navigate to Administration โ API Keys
- Create a new API key with DNS permissions
- Copy the key (shown only once)
-
Configure environment variables:
export INFOBLOX_API_KEY="your-api-key" export INFOBLOX_DNS_VIEW="default" # Or your specific view name
-
Identify your zone and view:
- In Infoblox Portal, go to DNS โ Authoritative Zones
- Note the zone name (e.g.,
example.com) and which view it belongs to
-
Use in Python:
from dns_aid.backends.infoblox import InfobloxBloxOneBackend from dns_aid.core.publisher import set_default_backend from dns_aid import publish # Initialize backend (reads from environment variables) backend = InfobloxBloxOneBackend() # Or with explicit configuration backend = InfobloxBloxOneBackend( api_key="your-api-key", dns_view="default", # Your DNS view name ) set_default_backend(backend) await publish( name="my-agent", domain="example.com", protocol="mcp", endpoint="agent.example.com", capabilities=["chat", "code-review"] )
Infoblox UDDI Limitations & BANDAID Compliance
โ ๏ธ Important: Infoblox UDDI SVCB records only support "alias mode" (priority 0) and do not support SVC parameters (
alpn,port,mandatory). This means Infoblox UDDI is not fully compliant with the BANDAID draft.The draft requires ServiceMode SVCB records (priority > 0) with mandatory
alpnandportparameters. Infoblox UDDI's limitation is a platform constraint, not a DNS-AID limitation.
| BANDAID Requirement | Route 53 | Infoblox UDDI |
|---|---|---|
| ServiceMode (priority > 0) | โ | โ |
alpn parameter |
โ | โ |
port parameter |
โ | โ |
mandatory key |
โ | โ |
For full BANDAID compliance, use Route 53 or another RFC 9460-compliant DNS provider.
DNS-AID stores alpn and port in TXT records as a fallback for Infoblox UDDI, but this is
a workaround and not standard-compliant for agent discovery.
Verify Records via API
Since Infoblox UDDI zones may not be publicly resolvable, verify records via the API:
async with InfobloxBloxOneBackend() as backend:
async for record in backend.list_records("example.com", name_pattern="my-agent"):
print(f"{record['type']}: {record['fqdn']}")
DDNS Setup (RFC 2136)
DDNS (Dynamic DNS) is a universal backend that works with any DNS server supporting RFC 2136, including BIND9, Windows DNS, PowerDNS, and Knot DNS. This is ideal for on-premise DNS infrastructure without vendor-specific APIs.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
DDNS_SERVER |
Yes | - | DNS server hostname or IP |
DDNS_KEY_NAME |
Yes | - | TSIG key name |
DDNS_KEY_SECRET |
Yes | - | TSIG key secret (base64) |
DDNS_KEY_ALGORITHM |
No | hmac-sha256 |
TSIG algorithm |
DDNS_PORT |
No | 53 |
DNS server port |
Step-by-Step Setup
-
Create a TSIG key on your DNS server (BIND example):
tsig-keygen -a hmac-sha256 dns-aid-key > /etc/bind/dns-aid-key.conf
-
Configure your zone to allow updates with the key:
zone "example.com" { type master; file "/var/lib/bind/example.com.zone"; allow-update { key "dns-aid-key"; }; }; -
Configure DNS-AID:
export DDNS_SERVER="ns1.example.com" export DDNS_KEY_NAME="dns-aid-key" export DDNS_KEY_SECRET="your-base64-secret"
-
Use in Python:
from dns_aid.backends.ddns import DDNSBackend from dns_aid import publish backend = DDNSBackend() # Or with explicit configuration backend = DDNSBackend( server="ns1.example.com", key_name="dns-aid-key", key_secret="base64secret==", key_algorithm="hmac-sha256" ) await publish( name="my-agent", domain="example.com", protocol="mcp", endpoint="agent.example.com", backend=backend )
DDNS Advantages
- Universal: Works with BIND, Windows DNS, PowerDNS, Knot, and any RFC 2136 server
- No vendor lock-in: Standard protocol, no proprietary APIs
- On-premise friendly: Perfect for enterprise internal DNS
- Full BANDAID compliance: Supports ServiceMode SVCB with all parameters
Cloudflare Setup
Cloudflare DNS is ideal for demos, workshops, and quick prototyping thanks to its free tier and excellent API support. DNS-AID fully supports Cloudflare's SVCB record implementation.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
CLOUDFLARE_API_TOKEN |
Yes | - | API token with DNS edit permissions |
CLOUDFLARE_ZONE_ID |
No | - | Zone ID (auto-discovered if not set) |
Step-by-Step Setup
-
Create an API token in Cloudflare Dashboard:
- Go to My Profile โ API Tokens โ Create Token
- Use the "Edit zone DNS" template or create custom with:
- Permissions: Zone โ DNS โ Edit
- Zone Resources: Include โ Specific zone โ your-domain.com
- Copy the token (shown only once)
-
Configure environment variables:
export CLOUDFLARE_API_TOKEN="your-api-token" # Optional: specify zone ID (otherwise auto-discovered from domain) export CLOUDFLARE_ZONE_ID="your-zone-id"
-
Publish your first agent:
dns-aid publish \ --name my-agent \ --domain your-domain.com \ --protocol mcp \ --endpoint agent.your-domain.com \ --backend cloudflare
-
Use in Python:
from dns_aid.backends.cloudflare import CloudflareBackend from dns_aid import publish # Initialize backend (reads from environment variables) backend = CloudflareBackend() # Or with explicit configuration backend = CloudflareBackend( api_token="your-api-token", zone_id="optional-zone-id", # Auto-discovered if not provided ) await publish( name="my-agent", domain="your-domain.com", protocol="mcp", endpoint="agent.your-domain.com", backend=backend )
Cloudflare Advantages
- Free tier: DNS hosting is free for unlimited domains
- SVCB support: Full RFC 9460 compliance with SVCB Type 64 records
- Global anycast: Fast DNS resolution worldwide
- Simple API: Well-documented REST API v4
- Full BANDAID compliance: Supports ServiceMode SVCB with all parameters
Why DNS-AID?
vs Competing Proposals
| Approach | Problem | DNS-AID Advantage |
|---|---|---|
| ANS (GoDaddy) | Centralized registry, KYC required, single gatekeeper | Federated โ you control your domain, publish instantly |
| Google (A2A + UCP) | Discovery via Gemini/Search, payments via UCP | Neutral discovery โ no platform lock-in or transaction fees |
| .agent gTLD | Requires ICANN approval, ongoing domain fees | Works NOW with domains you already own |
| AgentDNS (China Telecom) | Requires 6G infrastructure, carrier control | Works NOW on existing DNS infrastructure |
| NANDA (MIT) | New P2P overlay network, new ops paradigm | Uses infrastructure your DNS team already operates |
| Web3 (ERC-8004) | Gas fees, crypto wallets, enterprise-hostile | Free DNS queries, no blockchain complexity |
| ai.txt / llms.txt | No integrity verification, free-form JSON | DNSSEC cryptographic verification, structured SVCB |
Feature Comparison
| Feature | DNS-AID | Central Registry | ai.txt |
|---|---|---|---|
| Decentralized | โ | โ | โ |
| Secure (DNSSEC) | โ | Varies | โ |
| Sovereign | โ | โ | โ |
| Standards-based | โ (IETF) | โ | โ |
| Works with existing infra | โ | โ | โ |
The Sovereignty Question
Who controls agent discovery?
- ANS: GoDaddy (US company as gatekeeper)
- AgentDNS: China Telecom (state-owned carrier)
- Web3: Ethereum Foundation
- DNS-AID: You control your own domain
DNS-AID preserves sovereignty. Organizations and nations maintain control over their own agent namespaces with no central authority that can block, censor, or surveil agent discovery.
Google's Agent Ecosystem
Google is building a full-stack agent platform: A2A (communication), UCP (payments), and Gemini/Search (discovery). While A2A is an open protocol, discovery through Google surfaces means:
- Google controls visibility (pay-to-rank)
- Transaction fees via UCP
- Platform dependency for reach
DNS-AID complements A2A by providing neutral, decentralized discovery โ find agents anywhere, not just through Google.
Understanding the .agent Domain Approach
The Agent Community is pursuing a .agent top-level domain through ICANN's new gTLD program. Here's how the two approaches compare:
How .agent Domains Would Work:
- Apply to ICANN for
.agentgTLD (~$185,000 application fee) - Wait 9-20 months for ICANN approval process
- Build registry infrastructure (Open Agent Registry, Inc.)
- Sell
.agentdomains through accredited registrars - Users pay annual registration fees (~$15-50/year per domain)
How DNS-AID Works:
- Use your existing domain (you already own
yourcompany.com) - Add DNS-AID records to your zone (
_myagent._mcp._agents.yourcompany.com) - Start discovering and being discovered immediately
| Factor | .agent gTLD | DNS-AID |
|---|---|---|
| Cost to publish | ~$15-50/year domain fee | Free (use existing domain) |
| Time to start | Months (gTLD launch + registration) | Minutes |
| Who controls discovery | Registry operator | You (your domain) |
| Works today | โ Pending ICANN approval | โ Works now |
| Requires new infrastructure | โ Registry, registrars | โ Uses existing DNS |
| Memorable names | โ
myagent.agent |
_myagent._mcp._agents.example.com |
The Friendly Take:
Both approaches share the goal of making AI agents discoverable. The .agent gTLD creates a dedicated namespace that's easy to remember (mycompany.agent), while DNS-AID leverages existing infrastructure so you can start publishing agents today.
DNS-AID doesn't require waiting for ICANN approval or paying for new domainsโit works with the DNS infrastructure your organization already operates. If you own example.com, you can publish agents to _myagent._mcp._agents.example.com right now.
Fun fact: When .agent domains become available, DNS-AID records will work on them too! The approaches are complementary.
Examples
See the examples/ directory:
demo_route53.py- Basic Route 53 publish/discoverdemo_full.py- Complete end-to-end demonstration
# Run the full demo
export DNS_AID_TEST_ZONE="your-zone.com"
python examples/demo_full.py
Development
# Clone the repo
git clone https://github.com/iracic82/DNS-AID.git
cd DNS-AID
# Install all workspace packages (requires uv)
uv sync
# Run all tests
uv run pytest
# Run tests for a specific package
uv run pytest packages/dns-aid-directory/tests/
uv run pytest packages/dns-aid-crawlers/tests/
uv run pytest packages/dns-aid-k8s/tests/
# Run with coverage
uv run pytest --cov=dns_aid_directory --cov=dns_aid_crawlers --cov=dns_aid_k8s
Related Standards
- RFC 9460 - SVCB and HTTPS Resource Records
- RFC 4033-4035 - DNSSEC
- RFC 6698 - DANE TLSA
License
Apache 2.0
Contributing
Contributions welcome! This project is intended for contribution to the Linux Foundation Agent AI Foundation.
See CONTRIBUTING.md for guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dns_aid-0.18.3.tar.gz.
File metadata
- Download URL: dns_aid-0.18.3.tar.gz
- Upload date:
- Size: 564.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80f1c6250cbf1a34db743071cabf5fecc1318c112f356ad36001d5371d79ddbe
|
|
| MD5 |
f85a21fdb967f5e4406ecd354d9aaa65
|
|
| BLAKE2b-256 |
3a4b98c2ea3af8c9880a54251040990330d7cce204b4e460c4bb8a491605de25
|
Provenance
The following attestation bundles were made for dns_aid-0.18.3.tar.gz:
Publisher:
release.yml on infobloxopen/dns-aid-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dns_aid-0.18.3.tar.gz -
Subject digest:
80f1c6250cbf1a34db743071cabf5fecc1318c112f356ad36001d5371d79ddbe - Sigstore transparency entry: 1383929967
- Sigstore integration time:
-
Permalink:
infobloxopen/dns-aid-core@63920ac14c28ad605b430e30f3528712dfd8d12c -
Branch / Tag:
refs/tags/v0.18.3 - Owner: https://github.com/infobloxopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@63920ac14c28ad605b430e30f3528712dfd8d12c -
Trigger Event:
push
-
Statement type:
File details
Details for the file dns_aid-0.18.3-py3-none-any.whl.
File metadata
- Download URL: dns_aid-0.18.3-py3-none-any.whl
- Upload date:
- Size: 232.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac23c0fe4ac573b81dd505725ebc70393337eec3e5c2158a9b498ab5d8b998a9
|
|
| MD5 |
e6699fe32f37f1175fdcc98d44645f28
|
|
| BLAKE2b-256 |
3d5f25fc86422a2d9d5930bd513661b4de44622493b48d086f199c95ade94bd0
|
Provenance
The following attestation bundles were made for dns_aid-0.18.3-py3-none-any.whl:
Publisher:
release.yml on infobloxopen/dns-aid-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dns_aid-0.18.3-py3-none-any.whl -
Subject digest:
ac23c0fe4ac573b81dd505725ebc70393337eec3e5c2158a9b498ab5d8b998a9 - Sigstore transparency entry: 1383929995
- Sigstore integration time:
-
Permalink:
infobloxopen/dns-aid-core@63920ac14c28ad605b430e30f3528712dfd8d12c -
Branch / Tag:
refs/tags/v0.18.3 - Owner: https://github.com/infobloxopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@63920ac14c28ad605b430e30f3528712dfd8d12c -
Trigger Event:
push
-
Statement type: