Update USAGE.md

This commit is contained in:
George 2020-01-27 11:07:35 -05:00 committed by GitHub
parent da08a18e84
commit 7f39330a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,24 +3,24 @@
Minimum go version 1.12 is required. Minimum go version 1.12 is required.
1) Get the source code and compile 1) Get the source code and compile
```
git clone https://github.com/zhoreeq/meshname.git git clone https://github.com/zhoreeq/meshname.git
cd meshname cd meshname
make make
```
2) Generate the default config for your host 2) Generate the default config for your host
```
./meshnamed genconf 200:6fc8:9220:f400:5cc2:305a:4ac6:967e | tee /tmp/meshnamed.conf ./meshnamed genconf 200:6fc8:9220:f400:5cc2:305a:4ac6:967e | tee /tmp/meshnamed.conf
```
3) Optionally, set the configuration with environment variables 3) Optionally, set the configuration with environment variables
```
export LISTEN_ADDR=[::1]:53535 export LISTEN_ADDR=[::1]:53535
export MESH_SUBNET=200::/7 export MESH_SUBNET=200::/7
```
4) Run the daemon 4) Run the daemon
```
./meshnamed daemon /tmp/meshnamed.conf ./meshnamed daemon /tmp/meshnamed.conf
```
Add new DNS records to configuration file and restart the daemon to apply settings. Add new DNS records to configuration file and restart the daemon to apply settings.
A record can be of any valid string form parsed by [miekg/dns](https://godoc.org/github.com/miekg/dns#NewRR). A record can be of any valid string form parsed by [miekg/dns](https://godoc.org/github.com/miekg/dns#NewRR).