http://github.com/rtomayko/ronn/tree/0.7.3
.
kadnode-ctl [\.\.\.] .
Also provide a --peerfile argument to let KadNode backup its peerlist on shutdown and every 24h\. This ensures successful bootstrapping on next startup\. .
One node announces a domain, e\.g\. mynode\.p2p\. The other node looks for the IP address of the announcing node\. Authentication happens via TLS, which in turn uses X509 certificates\. .
kadnode --announce mynode\.p2p --tls-server-cert mynode\.crt,mynode\.key ..
As an alternative, ownerhip can be proven using a HTTPS server running on the same host\. In this case, KadNode itself does not need certificates, but needs to announce the HTTPS port: .
kadnode --announce mynode\.p2p:443 ..
The other node doing the lookup for mynode\.p2p needs to have access to the root certificate that has been used to sign mynode\.crt\. These can be a common web browsers certificates: .
kadnode --tls-client-cert /usr/share/ca-certificates/mozilla ..
Own certificates authorities can be created and used, of course\. .
Note: --announce is optional in many cases as domains from certificate and key files are announced automatically\. .
kadnode --bob-create-key mysecretkey\.pem Generating secp256r1 key pair\.\.\. Public key: c492192ac20144ed2a43d57e7239f5ef5f6bb418a51600980e55ff565cc916a4 Wrote secret key to mysecretkey\.pem ..
Now make the secret key load on KadNode startup: kadnode --bob-load-key mysecretkey\.pem .
Any reachable node can now resolve c492192ac20144ed2a43d57e7239f5ef5f6bb418a51600980e55ff565cc916a4\.p2p to the IP address of the announcing host\. There is no need to share any more information beforehand\. .
Announce a domain and an optional port via the DHT\. .
This option may occur multiple times\. .
Import peers for bootstrapping and write good peers .
to this file every 24 hours and on shutdown\. .
Change the UUID after start\. .
Bind the DHT to this port\. .
Default: 6881 .
Provide a configuration file with one command line .
option on each line\. Comments start after \'#\'\. .
Bind to this specific interface\. .
Disable UPnP/NAT-PMP to forward router ports\. .
Run in background\. .
Top level domain used to filter queries to be resolved by KadNode\. .
Set to empty string to match all\. .
Default: \.p2p .
Verbosity level quiet, verbose or debug\. .
Default: verbose .
Write process pid to a file\. .
Disable Local Peer Discovery (LPD)\. .
Disable the local control interface\. .
Bind the remote control interface to a unix socket\. .
Default: /tmp/kadnode/kadnode_cmd\.sock .
Bind the DNS server interface to this local port\. .
Default: 3535 .
IP address of an external DNS server\. Enables DNS proxy mode\. .
Default: disabled .
Enable DNS proxy mode\. Uses /etc/resolv\.conf by default\. .
Use IP address of an external DNS server instead of /etc/resolv\.conf\. .
Bind the "Name Service Switch" to a unix socket\. .
Default: /tmp/kadnode/kadnode_nss\.sock .
Path to file or folder of CA root certificates\. .
This option may occur multiple times\. .
Add a comma separated server certificate file path and key file path\. .
This option may occur multiple times\. .
Example: kadnode\.crt,kadnode\.key .
Write a new secp256r1 secret key in PEM format to the file\. .
The public key will be printed to the terminal before exit\. .
Read a secret key in PEM format and announce the public key\. .
This option may occur multiple times\. .
Enable IPv4 or IPv6 only mode for the DHT\. .
Default: IPv4+IPv6 .
Print the list of accepted options\. .
Print program version and included features\. .
Print the node id, the number of known nodes / searches / stored hashes and more\. .
Lookup the IP addresses of all nodes that claim to satisfy the domain\. .
The first call will start the search\. .
Announce that this instance is associated with a domain .
and an optional port\. The default port is random (but not equal 0)\. .
A missing minutes argument trigger a single announcement\. Negative minutes .
last for the entire runtime\. Otherwise the lifetime is set minutes into the future\. .
No arguments will announce all identifiers at once\. .
Send a ping to another KadNode instance to establish a connection\. .
Print a few good nodes\. .
List various internal data structures\. .
Blacklist a specific IP address\. .
kadnode-ctl [-p path] [status|lookup|announce|import|export|blacklist] .
Unix socket used to connect to the command shell of a local KadNode instance (Default: /tmp/kadnode\.sock)\. .
Print this help\. .