IOTA Names
The portal resolves IOTA Names names. A name
<name>.iota is served at https://<name>.iotastorage.com/, subnames included:
| Address | Name looked up |
|---|---|
https://alice.iotastorage.com/ | alice.iota |
https://blog.alice.iotastorage.com/ | blog.alice.iota |
From the app
In My sites, each of your sites has a Names row: the names of your wallet that lead to it,
each with a link and a Remove button, and Add a name. The form has two fields,
[subname] . [your name]:
- Only your name (leave the subname empty):
alice.iotaleads to the site athttps://alice.iotastorage.com/. The app writes the site's link in the name'swebsitefield; its target address, where what is sent to the name arrives, does not change. - A subname (
blog):blog.alice.iotaleads to the site athttps://blog.alice.iotastorage.com/. The app creates a leaf subname: it has no NFT of its own, it is managed with your name's and it lasts as long as your name. If it already led to another of your sites, it is moved to this one in the same transaction.
Before you sign, the form tells you the address and, if the name already leads somewhere, where. Each change is one transaction that you sign in your wallet and that only costs gas. The list of your names includes the subnames with an NFT of their own that you own (it works the same way for them) and leaves out those that have expired or that the portal does not serve (see Reserved subdomains); without names, the app tells you where to register one.
https://alice.iotastorage.com/ is covered by the portal's certificate and works right away. An
address with two levels, like https://blog.alice.iotastorage.com/, gets its own certificate on
its first visit, and the portal issues 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 will open a few days later.
How a name points to a site
A name leads to a site if either:
- its
websitefield is the ID of theSite(0x…, 64 hexadecimal digits) or a link to it in a portal (https://<site ID in base36>.iotastorage.com/), or - its target address is the
Siteitself.
The portal checks the website field first and then the target address. Only Site objects of the
sites package count; a name that does not exist, has expired or points to something else gives a
404.
By hand, at testnet.iotanames.com
Without the app, you can do the same at testnet.iotanames.com with the wallet that owns the name:
- Publish the site and copy the ID of its
Site(0x…). The app shows it in My sites; the CLI prints it when publishing. - Create a subname, for example
blogunderalice.iota, and connect it to the address of theSite("Connect to Address"). - Open
https://blog.alice.iotastorage.com/.
Do not set the target address of your main name to the Site: payments sent to the name would go
to the Site object instead of your account. To use the main name, set its website field to the
Site ID or to its portal link, as the app does.
Reserved subdomains
The portal does not look up some subdomains in IOTA Names, so that nobody can serve a page that looks like part of the project (or of someone else's site) with the certificate of the domain. They give a 404 even if the name exists:
- these names:
www,aggregator,publisher,nodo-*,node-*,docs,app,api,rpc,portal,status,faucet,explorer,static,cdn,assets,blog,iota*,iota-*,storage,treasury,tesoreria,staking,admin,login,signin,signup,auth,account,accounts,wallet,wallets,secure,security,verify,support,help,pay,billing,dashboard,console,mail,webmail,smtp,imap,pop,mx,ns,ns1,ns2,dns,ftp,vpn,autoconfig,autodiscoverandmta-sts(*stands for any ending); - their subnames, such as
login.wallet.iotastorage.com(login.wallet.iota); - subnames under the ID of an object in base36, such as
x.<site ID in base36>.iotastorage.com; - names with a label in punycode (
xn--…), which the browser shows as Unicode letters that can imitate others.
Only the main name counts: the subnames of your own name are not affected, so
wallet.alice.iotastorage.com (wallet.alice.iota) works.
Good to know
- The names are registered with IOTA Names and are governed by its terms of service, which are not those of IOTA Storage; IOTA Names can withdraw a name. If a name expires or is withdrawn, its address in the portal stops working; the site is still served at the address of its ID, unless the portal shows the sites of its users only by their name.
- The portal remembers the result of a name lookup, also a negative one, for 30 seconds. A change of target takes up to that long to show.
- If you destroy a site and publish it again, it has a new ID: point the name to the new
Site(with Add a name, choosing the same name or subname). Before you confirm, the app tells you which names lead to the site you are destroying. - The CLI does the same as the app (
names,name,unname) and accepts a name wherever it takes a site (for examplenode site.mjs map blog.alice.iota), read as the portal does. - Not yet available: the reverse lookup from the
Siteto its name, which would require depending on the IOTA Names package.