Give your site a name
A site's address in base36 is long and hard to remember. With an IOTA Names
name in your wallet, the same site is served at https://<name>.iotastorage.com/:
| Name | Address of the site |
|---|---|
alice.iota | https://alice.iotastorage.com/ |
blog.alice.iota (a subname) | https://blog.alice.iotastorage.com/ |
You need: a site of yours in My sites, and an IOTA Names name owned by the same wallet. Without one, the Names row says where to register it: at testnet.iotanames.com, with testnet IOTA.
Add a name
- In My sites, find the row Names: of the site. It lists the names of your wallet that already lead to it, or none. Press Add a name. (After publishing a site, the result box has the same button.)
- The form has two fields, Subname (optional) and Your name:
- choose your name in the list. A name shown as (expired) or (the portal does not serve it) cannot be used;
- leave the subname empty to use the name itself (
alice.iota), or type one (blog) to use a subname (blog.alice.iota). A subname has 3 to 63 characters: lettersa–z, digits and hyphens, not at the start or the end.
- Before you sign, the form tells you the resulting address and where the name leads today:
- It already leads to this site;
- It now leads to "…": it will lead to this site instead (another of your sites);
- It now leads to another address: it will lead to this site instead. With a subname, it also reminds you that an address with two levels gets its own certificate on its first visit (below).
- Press Lead it to this site and approve one transaction. It only costs gas.
The row now lists the name with a link: name now leads to this site: address (the portal may take up to 30 seconds to notice).
How it works
- With your name alone, the app writes the site's address in the name's
websitefield. Where the name points (the address that receives what is sent to it) does not change, so payments toalice.iotastill reach your account. - With a subname, the app creates a leaf subname that points to the site. It has no NFT of its own, it is managed through your name, and it lasts as long as your name. If the subname already led to another of your sites, it is moved in the same transaction.
The list in Your name also includes the subnames you own with an NFT of their own, which work like a name.
https://alice.iotastorage.com/ is covered by the portal's certificate and opens at once. An
address with two levels, like https://blog.alice.iotastorage.com/, gets its own certificate on
its first visit. The portal can issue only a few of those per week for all its users, and at most
three for the subnames of each name: if they have run out, the address opens a few days later.
Remove a name
Each name in the row has a Remove button. It asks for a second click (Remove the name),
then one signature. The name no longer leads to the site: its website field is cleared, or the
leaf subname is removed. The name itself stays yours.
When you destroy or republish a site
A destroyed site cannot be reached, so its names lead nowhere; the app warns you before you confirm (Its names (…) will lead nowhere). If you publish the folder again, the new site has a new ID: add the name to it again with Add a name, choosing the same name or subname.
Errors
| Message | Meaning |
|---|---|
| "…" is not a valid subname | Use 3 to 63 characters among a–z, 0–9 and hyphens, not at the start or the end. |
| The portal does not serve …: that name is reserved | Some names (www, app, docs, wallet, login…) are never served, so that nobody can pass for the project. The subnames of your own name are not affected. See Reserved subdomains. |
| … has expired or is no longer yours | Renew the name at IOTA Names, or choose another. |
| … already exists as a subname with an NFT of its own | If it is yours, choose it in the list of names; if not, use another subname. |
| … cannot have subnames | Whoever created the name did not allow subnames. Use the name itself. |
Without the app
The command line does the same with name, unname and names, and you can
also do it by hand at testnet.iotanames.com. The rules the portal
follows are in IOTA Names.