From 021e3abaef3429fe89e2fc98c2290c5fdabaf300 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 7 Jan 2016 18:27:54 +0100 Subject: [PATCH] README-dnsdist.md: Unrecognized option --daemon-no It seems that there never was a "daemon-no" option: dnsdist: unrecognized option '--daemon-no' dnsdist: option '--daemon' doesn't allow an argument --- pdns/README-dnsdist.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pdns/README-dnsdist.md b/pdns/README-dnsdist.md index 8138f0fc4..a8694506f 100644 --- a/pdns/README-dnsdist.md +++ b/pdns/README-dnsdist.md @@ -62,7 +62,7 @@ newServer({address="2620:0:ccd::2", name="dns1", qps=10}) newServer("192.168.1.2") setServerPolicy(firstAvailable) -- first server within its QPS limit -$ dnsdist --local=0.0.0.0:5200 --daemon=no +$ dnsdist --local=0.0.0.0:5200 Marking downstream [2001:4860:4860::8888]:53 as 'up' Marking downstream [2001:4860:4860::8844]:53 as 'up' Marking downstream [2620:0:ccc::2]:53 as 'up' @@ -590,10 +590,11 @@ Running it for real First run on the command line, and generate a key: ``` -# dnsdist --daemon-no +# dnsdist > makeKey() setKey("sepuCcHcQnSAZgNbNPCCpDWbujZ5esZJmrt/wh6ldkQ=") ``` + Now add this setKey line to `dnsdistconf.lua`, and also add: ``` @@ -602,7 +603,7 @@ controlSocket("0.0.0.0") -- or add portnumber too Then start `dnsdist` as a daemon, and then connect to it: ``` -# dnsdist +# dnsdist --daemon # dnsdist --client > ``` -- 2.40.0