Give an agent an identity
An agent’s identity starts with a domain and a keypair, and is finalized by a published and verified identity record. The domain is one you own: you operate its DNS, TLS, and JWKS, and you sign and publish the record. This is the self-managed model, and it is the accountability model the protocol is built around—your domain vouches for your agent.
Most developers prove out the flow first on DNSid Local, where a disposable local network stands in for your DNS and hosting, then publish on their own domain. Environments maps that progression. From code, Publish self-managed records covers the pure-protocol path. On DNSid Local, the local registry uses the same registration states against the local zone.
The DNS TXT record
Section titled “The DNS TXT record”Identity is published as a signed TXT record below the agent’s domain, carrying an algorithm-prefixed record signature:
_dnsid.agent.example. IN TXT "v=dnsid-draft-01; gi=example.com; ek=https://example.com/.well-known/dnsid/jwks.json; ku=https://agent.example/.well-known/dnsid/jwks.json; lr=c2sp-tlog:public:https://log.dnsid.ai#EREREREREREREREREREREQ; su=https://agent.example/.well-known/dnsid/status.json; sg=EdDSA:<signature>"Each field in the signed TXT record, and what it carries. The sample lr= stream ID is an opaque placeholder; generate a fresh random ID for each identity instance.
The record in public DNS is authoritative—the registry API tracks workflow state, but what counterparties trust is what resolves. The DNSid Local quickstart walks through inspecting and verifying a record field by field.
Verification and the record lifecycle
Section titled “Verification and the record lifecycle”A registered identity becomes trustworthy when its record is verified with dnsid record verify. For self-managed registrations, dnsid verify starts TLS, JWKS-format, and proof-of-possession checks; it does not verify the _dnsid TXT record. From there, freshness is maintained by the domain owner, who republishes the record and keeps the status endpoint current. Status & freshness covers that upkeep.
The record lifecycle. Self-managed records are maintained by the domain owner.
Lifecycle state changes—issuance, key rotation, revocation, retirement—are recorded as signed events in the agent’s lifecycle log, which verifiers check as part of domain verification. The Transparency log guide covers that half of the story.
The registration state machine
Section titled “The registration state machine”Registrations driven through a registry—DNSid Local’s included—move through a fixed set of states, visible in dnsid status:
The typical registration workflow. RETIRED and REVOKED are terminal.
- PENDING → PROVISIONING → VERIFICATION → VERIFIED → READY is the standard happy path; Live v1 skips PROVISIONING. Self-managed registrations wait at VERIFICATION for TLS, JWKS, and proof-of-possession checks. Managed registrations on DNSid Local and sandbox bypass these external checks; Live v1 still requires a signing challenge to prove possession of the agent’s key before VERIFIED.
- VERIFIED is not yet READY. On DNSid Local’s managed path, run
dnsid log issueto countersign and submit ISSUANCE; the registry then publishes the_dnsidrecord and advances to READY. See the local quickstart. - ERROR reports a workflow failure. Read its code and message with
dnsid statusand fix the underlying issue. Common self-managed failures are an invalid TLS certificate, an unreachable JWKS URL, or an expired challenge. For self-managed registrations outside DNSid Local, re-rundnsid verifyto retry from VERIFICATION, not provisioning, then answer the new challenge withdnsid challenge. See the command reference. - DNSid Local does not support failed self-managed check retries. From ERROR,
dnsid verifymoves the registration to VERIFICATION but does not rerun TLS/JWKS checks or generate a new challenge. Do not use that command as a recovery step for failed self-managed checks on Local; this is a current Local limitation. - RETIRED and REVOKED are terminal, as are REJECTED and CANCELLED for registrations that never completed. Retirement or revocation requires a new identity rather than a return to READY; the registry blocks re-registration on domains revoked for policy violation.