From 7f39330a9845f68a027a50b6fcaf2ba6638cfb6f Mon Sep 17 00:00:00 2001 From: George <57254463+zhoreeq@users.noreply.github.com> Date: Mon, 27 Jan 2020 11:07:35 -0500 Subject: [PATCH] Update USAGE.md --- USAGE.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/USAGE.md b/USAGE.md index 6f973ff..e3de618 100644 --- a/USAGE.md +++ b/USAGE.md @@ -3,24 +3,24 @@ Minimum go version 1.12 is required. 1) Get the source code and compile - - git clone https://github.com/zhoreeq/meshname.git - cd meshname - make - +``` +git clone https://github.com/zhoreeq/meshname.git +cd meshname +make +``` 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 - - export LISTEN_ADDR=[::1]:53535 - export MESH_SUBNET=200::/7 - +``` +export LISTEN_ADDR=[::1]:53535 +export MESH_SUBNET=200::/7 +``` 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. A record can be of any valid string form parsed by [miekg/dns](https://godoc.org/github.com/miekg/dns#NewRR).