You are here

Maintaining your own Zones

Primary tabs

To setup you GNS system you must execute:

$ gnunet-gns-import.sh

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 1.2.3.4. 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 1.2.3.4 -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.