From ca55cc52cdda2ec85f8ce3d5fb93f2883219a236 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Thu, 26 Oct 2017 23:01:03 +0200 Subject: [PATCH] dnsdist: Add showBinds, getBind to completion/help --- pdns/dnsdist-console.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 423e90bd1..07b1cd223 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -315,6 +315,7 @@ const std::vector g_consoleKeywords{ { "fixupCase", true, "bool", "if set (default to no), rewrite the first qname of the question part of the answer to match the one from the query. It is only useful when you have a downstream server that messes up the case of the question qname in the answer" }, { "generateDNSCryptCertificate", true, "\"/path/to/providerPrivate.key\", \"/path/to/resolver.cert\", \"/path/to/resolver.key\", serial, validFrom, validUntil", "generate a new resolver private key and related certificate, valid from the `validFrom` timestamp until the `validUntil` one, signed with the provider private key" }, { "generateDNSCryptProviderKeys", true, "\"/path/to/providerPublic.key\", \"/path/to/providerPrivate.key\"", "generate a new provider keypair" }, + { "getBind", true, "n", "returns the listener at index n" }, { "getDNSCryptBind", true, "n", "return the `DNSCryptContext` object corresponding to the bind `n`" }, { "getPool", true, "name", "return the pool named `name`, or \"\" for the default pool" }, { "getPoolServers", true, "pool", "return servers part of this pool" }, @@ -392,6 +393,7 @@ const std::vector g_consoleKeywords{ { "setVerboseHealthChecks", true, "bool", "set whether health check errors will be logged" }, { "show", true, "string", "outputs `string`" }, { "showACL", true, "", "show our ACL set" }, + { "showBinds", true, "", "show listening addresses (frontends)" }, { "showCacheHitResponseRules", true, "", "show all defined cache hit response rules" }, { "showDNSCryptBinds", true, "", "display the currently configured DNSCrypt binds" }, { "showDynBlocks", true, "", "show dynamic blocks in force" }, -- 2.50.1