diff --git a/docs/index.md b/docs/index.md index 43c46e7..c821df0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -42,6 +42,7 @@ ZeroNet counts with a build-in SQL database. This makes content-heavy site devel * Password-less [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) based authorization: Your account is protected by same cryptography as your bitcoin wallet. * Namecoin .bit domains support. + * DNS support * SQL Database support: Allows for easier site development and faster page load times. * Automatic, uPnP port opening using. * Plugin for multiuser(openproxy) support. diff --git a/docs/site_development/content_json.md b/docs/site_development/content_json.md index 2302238..a5decad 100644 --- a/docs/site_development/content_json.md +++ b/docs/site_development/content_json.md @@ -42,7 +42,7 @@ Description of your site, displayed under site title on ZeroHello. ### domain -Namecoin domain name of your site. ZeroHello will link to this if the user has Zeroname plugin enabled. +Domain name of your site. ZeroHello will link to this if the user has Zeroname plugin enabled. **Example**: Blog.ZeroNetwork.bit diff --git a/docs/using_zeronet/create_new_site.md b/docs/using_zeronet/create_new_site.md index f82fcc4..5c95c51 100644 --- a/docs/using_zeronet/create_new_site.md +++ b/docs/using_zeronet/create_new_site.md @@ -50,5 +50,64 @@ Site:13DNDk..bhC2 Successfuly published to 3 peers * That's it! You've successfully signed and published your modifications. * Your site will be accessible from: ```http://localhost:43110/13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2``` +### 4. Add domain name resolving + +This step is optional. It's hard to use alway a full site ID `13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2`. For this reason it's possible to use a name resolving service. It's possible to use the normal Domain Name System (DNS) or to use the Namecoin system. + +To make the homepage (ZeroHello) link to your site domain you have to add a "domain" key to your site's content.json file, for example: + +``` + { + "address": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ", + "background-color": "#F5F5F5", + "description": "Decentralized forum demo", + "domain": "Talk.ZeroNetwork.bit", + "files": { + ... +``` + +#### Domain Name System (DNS) + +Simply add a new TXT record to your DNS zonefile on your nameservers. + +##### Example TXT record: Subdomain + +``` +subdomain IN TXT "zero=1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ" +``` + +##### Example TXT record: Top level domain (TLD) + +``` +@ IN TXT "zero=1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ" +``` + +#### Namecoin + +To register the site ID just add 'zeronet' key to your namecoin domain. +The "" key means the primary domain, any other than that is a subdomain. + +Example: + +``` + { + "name": { + "formatted": "ZeroNet project" + }, + "bitcoin": { + "address": "1QDhxQ6PraUZa21ET5fYUCPgdrwBomnFgX" + }, + "zeronet": { + "": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr", + "blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8", + "talk": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ" + }, + "ns": [ + "ns1.domaincoin.net" + "ns2.domaincoin.net" + ] + } + ``` + **Next steps:** [ZeroNet Developer Documentation](/site_development/getting_started/) diff --git a/docs/using_zeronet/installing.md b/docs/using_zeronet/installing.md index 5e84447..aa135c5 100644 --- a/docs/using_zeronet/installing.md +++ b/docs/using_zeronet/installing.md @@ -24,7 +24,7 @@ It will download the latest version of ZeroNet and start it automatically. ### Debian * `sudo apt-get update` -* `sudo apt-get install msgpack-python python-gevent` +* `sudo apt-get install msgpack-python python-gevent python-dnspython` * `wget https://github.com/HelloZeroNet/ZeroNet/archive/master.tar.gz` * `tar xvpfz master.tar.gz` * `cd ZeroNet-master` @@ -35,7 +35,7 @@ It will download the latest version of ZeroNet and start it automatically. * Check your python version using `python --version` if the returned version is not `Python 2.7.X` then try `python2` or `python2.7` command and use it from now * `wget https://bootstrap.pypa.io/get-pip.py` -* `python get-pip.py --user gevent msgpack-python` +* `python get-pip.py --user gevent msgpack-python dnspython` * `wget https://codeload.github.com/HelloZeroNet/ZeroNet/tar.gz/master` * `tar xvpfz master` * Start with `python zeronet.py` @@ -44,7 +44,7 @@ It will download the latest version of ZeroNet and start it automatically. * Install [brew](http://brew.sh/) * `brew install python` - * `pip install gevent msgpack-python` + * `pip install gevent msgpack-python dnspython` * [Download](https://github.com/HelloZeroNet/ZeroNet/archive/master.zip), Unpack, run `python zeronet.py` ## Vagrant