AgentDNS: A Root Domain Naming System for LLM Agents

Enfang Cui, Yujun Cheng, Rui She, Dan Liu, Zhiyuan Liang, Minxin Guo, Tianzheng Li, Wei Qian, Wenjuan Xing, Z. Zhong

Abstract: The rapid evolution of Large Language Model (LLM) agents has highlighted critical challenges in cross-vendor service discovery, interoperability, and communication. Existing protocols like model context protocol and agent-to-agent protocol have made significant strides in standardizing interoperability between agents and tools, as well as communication among multi-agents. However, there remains a lack of standardized protocols and solutions for service discovery across different agent and tool vendors. In this paper, we propose AgentDNS, a root domain naming and service discovery system designed to enable LLM agents to autonomously discover, resolve, and securely invoke third-party agent and tool services across organizational and technological boundaries. Inspired by the principles of the traditional DNS, AgentDNS introduces a structured mechanism for service registration, semantic service discovery, secure invocation, and unified billing. We detail the architecture, core functionalities, and use cases of AgentDNS, demonstrating its potential to streamline multi-agent collaboration in real-world scenarios.

Introduction

We are currently in the "Wild West" phase of LLM agents. While protocols like Anthropic’s Model Context Protocol (MCP) and Google’s Agent-to-Agent (A2A) have standardized how agents interact with tools and each other, they do not solve the fundamental problem of discovery.

If an agent requires a specialized tool—such as a legal document analyzer from a niche startup—how does it find it? Currently, developers must manually configure API keys, endpoints, and billing for every external service. This creates "isolated intelligence": agents that function well within a single ecosystem but cannot autonomously collaborate across organizational boundaries. AgentDNS addresses three core hurdles: the lack of standardized naming (Discovery), the inability to adapt to varying communication protocols (Interoperability), and fragmented payment systems (Authentication and Billing).

System Architecture

AgentDNS acts as a decentralized naming and discovery framework, effectively serving as the "Yellow Pages" for the LLM agent ecosystem. By mimicking the traditional Internet’s Domain Name System (DNS), it allows autonomous agents to find, authenticate with, and pay for third-party services using natural language queries.

The high-level architecture of AgentDNS facilitating cross-organizational agent collaboration through a centralized Root Server and standardized protocols.

As shown in the architecture above, the system sits atop existing protocols like MCP and A2A, acting as an orchestrator that bridges organizational and technological boundaries. The AgentDNS Root Server maintains a database of registered services and provides an API for resolution and discovery.

Core Pillars of AgentDNS

1. Unified Namespace

Services are assigned a human-readable, semantically rich URI. This decouples a service's identity from its physical IP address or specific API endpoint, allowing vendors to migrate infrastructure without breaking downstream agent integrations.

The structured URI format for AgentDNS services, enabling semantic identification.

2. Natural Language-Driven Discovery

Instead of rigid, exact-match lookups, agents send natural language descriptions of their needs to the Root Server. The server employs a hybrid retrieval mechanism—combining keyword matching and Retrieval-Augmented Generation (RAG)—to identify the most suitable services based on the agent's intent.

3. The Service Proxy Pool

To handle interoperability, AgentDNS utilizes a Service Proxy Pool. When an agent invokes a service, it communicates through a proxy that translates protocols (e.g., bridging an agent using A2A to a tool using MCP) and manages security credentials, ensuring a seamless connection regardless of the underlying technology stack.

4. Unified Authentication & Billing

AgentDNS implements a Single-Sign-On (SSO) for agents. An agent authenticates once with the root server to receive a time-bound token. Billing is centralized; users pre-fund an AgentDNS account, and the system manages micro-payments to various vendors in the background, solving the "API key hell" that currently prevents autonomous agent commerce.

Case Study and Results

The system was validated through a research agent case study tasked with analyzing academic papers. The workflow demonstrated successful action plan execution:

  1. An LLM generated a multi-step JSON plan.
  2. The agent queried AgentDNS for a "search engine tool."
  3. AgentDNS returned metadata for agentdns://example/search/searchagent, including its physical address, protocol support (MCP), and cost.
  4. The agent successfully invoked the tool using a unified authentication token.

This architecture significantly reduces manual configuration overhead and enables agents to handle complex, cross-vendor tasks that previously required human intervention.

Limitations and Future Work

While promising, the current centralized Root Server represents a single point of failure. Future iterations will explore decentralized, blockchain-based architectures. Additionally, the team is investigating privacy-preserving search methods to ensure that natural language queries do not leak sensitive user intent to the root server. Finally, a trust and reputation system will be essential to filter malicious or low-quality services from the registry as the ecosystem scales.

Summary updated

Abstract

The rapid evolution of Large Language Model (LLM) agents has highlighted critical challenges in cross-vendor service discovery, interoperability, and communication. Existing protocols like model context protocol and agent-to-agent protocol have made significant strides in standardizing interoperability between agents and tools, as well as communication among multi-agents. However, there remains a lack of standardized protocols and solutions for service discovery across different agent and tool vendors. In this paper, we propose AgentDNS, a root domain naming and service discovery system designed to enable LLM agents to autonomously discover, resolve, and securely invoke third-party agent and tool services across organizational and technological boundaries. Inspired by the principles of the traditional DNS, AgentDNS introduces a structured mechanism for service registration, semantic service discovery, secure invocation, and unified billing. We detail the architecture, core functionalities, and use cases of AgentDNS, demonstrating its potential to streamline multi-agent collaboration in real-world scenarios. The source code will be published on https://github.com/agentdns.
BibTeX
@misc{cui2025agentdns,
  author = {Enfang Cui and Yujun Cheng and Rui She and Dan Liu and Zhiyuan Liang and Minxin Guo and Tianzheng Li and Wei Qian and Wenjuan Xing and Z. Zhong},
  title = {{AgentDNS: A Root Domain Naming System for LLM Agents}},
  year = {2025},
  eprint = {2505.22368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.22368},
}
Figure