Overview
DNS is a address dispatch service of the ELA peer-to-peer network.
Build
$ make dns
Run DNS service
There are 3 optional parameters for the DNS service
- Net, use
-net <network> to specify the network parameters for the DNS service,
it can be mainnet testnet or regnet, the DNS service use mainnet parameters by default.
- Magic, use
-magic to specify the magic number of the DNS service, it will overwrite the magic
number in network parameters even the network has been specified by using -net parameter.
- Port, use
-port to specify a port for the DNS service, it will overwrite the port
number in network parameters even the network has been specified by using -net parameter.
- Debug, use
-debug to enable debug mode, in debug mode, DNS service will print out debug logs.
Run DNS service with default mainnet network parameters.
$ ./ela-dns
Specify the network.
$ ./ela-dns -net testnet
Specify the magic number.
$ ./ela-dns -magic 123123
Specify the serving port.
$ ./ela-dns -port 12345
Enable debug mode.
$ ./ela-dns -debug
Use all of them.
$ ./ela-dns -net regnet -magic 123123 -port 12345 -debug