Documentation
¶
Overview ¶
Command hostserver-gcp is a combined DirServer and StoreServer that serves a synthetic Upspin tree used to configure sub-domains under the domain upspin.services. Each Upspin user can set the IP address of one sub-domain, the name of which is a hash of their user name.
Assuming the server is running as host@github.com/palager/upspin, here's how the user user@example.com would configure their sub-domain:
$ upspin mkdir host@github.com/palager/upspin/user@example.com/127.0.0.1
If that command succeeds, their host name was created or updated. (This can be any command that performs a DirServer.Put to that path; the put command would work, but mkdir is the simpliest choice in this case.)
To find the host name, the user issues a get request, which returns both the host name and configured IP address:
$ upspin get host@example.com/user@example.com 127.0.0.1 b4c9a289323b21a01c3e940f150eb9b8.upspin.services