Dynamic DNS hostname under dynkite.com (200 sats 30d, 2,000 sats 1y)
hostname_createCreates a dynamic hostname such as myhome.dynkite.com. The answer gives the hostname token once (keep it: hostname_update and routers use it). Nothing renews it automatically: give npub to get Nostr reminders before it expires. From 2026-11-10, a create for a hostname that is already taken (bought more than a day ago) RENEWS it instead, like the renew tool: payment_required says so first, and it gives no hostname and no token. Paid, no account. Without payment the call returns payment_required with the price, a Lightning invoice and a Cashu payment request; pay only within what your user allowed, then call again with the same arguments plus l402=':', or call with cashu=''. Every request is checked for free before an invoice is made; use check first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostname": "<hostname>",
"period": "<period>"
},
"name": "hostname_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402 | No | Lightning payment proof for a retry: '<macaroon>:<preimage>', where macaroon comes from the payment_required answer of the previous call and preimage is the 64-hex proof your wallet returns after paying its invoice. Use it with the same tool and arguments. | |
| npub | No | Optional: a Nostr public key (npub1... or 64 hex) that gets direct-message reminders before the hostname expires, when grace starts and before removal. Reminders only: the key gets no control; managing the hostname still needs its token. | |
| cashu | No | Cashu token (cashuA... or cashuB...) worth at least the price, from an accepted mint (see info). Pays without a previous call. | |
| token | No | Only if you already hold this hostname's token (jdh_...): a create for your own hostname then answers hostname_owned with its expiry and how to renew, instead of hostname_taken (from 2026-11-10: a renewal invoice that says the hostname is already yours). | |
| period | Yes | 30d (30 days) or 1y (365 days). Prices differ: see the tool title. | |
| hostname | Yes | A label such as myhome (becomes myhome.dynkite.com), or the full name. |