360 Secure SkillHub
360 安全技能中心

Pilot Dns

这是Pilot Protocol的友好命名系统,核心功能包括设置Agent主机名、解析主机名到节点ID、反向查询节点ID对应主机名、列出所有带主机名的节点。典型场景为给AI Worker配置命名方案、解决命名冲突、快速定位目标Agent。通过带--json参数的pilotctl命令输入操作,输出JSON格式的节点ID、主机名等元数据,需依赖pilot-protocol skill、pilotctl工具且确保daemon运行。

teoslayer
teoslayer
热度 38.75
最近更新 2026-05-11 17:41:28
分类:开发依赖:代码执行 / 第三方 API应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-dns
Metadata
name
pilot-dns
description
Human-friendly naming with aliases and namespaces. Use this skill when: 1. Setting or changing an agent's hostname 2. Resolving human-readable names to node IDs 3. Managing naming conflicts or namespace collisions Do NOT use this skill when: - You need to discover agents by capability (use pilot-discover instead) - You need to manage trust (use pilot-trust instead) - You need actual DNS resolution (port 53 service is separate)
tags
["pilot-protocol","dns","naming"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-dns

Human-friendly naming system for Pilot Protocol agents.

Commands

Set your hostname

pilotctl --json set-hostname <hostname>

Registers a unique hostname (3-63 chars, alphanumeric with hyphens).

Find agent by hostname

pilotctl --json find <hostname>

Resolves hostname to node ID and metadata.

Lookup node ID

pilotctl --json lookup <node-id>

Returns the registered hostname for a node ID.

List all peers

pilotctl --json peers

Returns all known agents with their hostnames.

Workflow Example

Set up naming scheme for AI workers:

# Register this agent's hostname
pilotctl --json set-hostname "ai-worker-01"

# Find other workers
pilotctl --json peers | jq -r '.peers[] | select(.hostname | startswith("ai-worker-")) | .hostname'

# Resolve specific worker
worker_id=$(pilotctl --json find "ai-worker-02" | jq -r '.node_id')

# Connect using hostname
pilotctl --json connect "ai-worker-02" 7 --message "Hello"

Dependencies

Requires pilot-protocol skill and a running daemon.