- Developer Corner
- Recent posts
To setup you GNS system you must execute:
This will boostrap your zones and create the necessary key material.
Your keys can be listed using the gnunet-identity command line tool:
$ gnunet-identity -d
You can arbitrarily create your own zones using the gnunet-identity tool using:
$ gnunet-identity -C "new_zone"
Now you can add (or edit, or remove) records in your GNS zone using the gnunet-setup GUI or using the gnunet-namestore command-line tool. In either case, your records will be stored in an SQL database under control of the gnunet-service-namestore. Note that if mutliple users use one peer, the namestore database will include the combined records of all users. However, users will not be able to see each other's records if they are marked as private.
To provide a simple example for editing your own zone, suppose you have your own web server with IP 126.96.36.199. Then you can put an A record (A records in DNS are for IPv4 IP addresses) into your local zone using the command:
$ gnunet-namestore -z master-zone -a -n www -t A -V 188.8.131.52 -e never
Afterwards, you will be able to access your webpage under "www.gnu"(assuming your webserver does not use virtual hosting, if it does, please read up on setting up the GNS proxy).
Similar commands will work for other types of DNS and GNS records, the syntax largely depending on the type of the record. Naturally, most users may find editing the zones using the gnunet-setup GUI to be easier.