From: Charles Howes Date: Thu, 10 Nov 2022 21:29:58 +0000 (-0800) Subject: Expand on the dnsupdate example, and reword the TSIG-ALLOW-DNSUPDATE and ALLOW-DNSUPD... X-Git-Tag: dnsdist-1.8.0-rc1~189^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c852ac182816371a482bd0bf96743bc546f63a3;p=thirdparty%2Fpdns.git Expand on the dnsupdate example, and reword the TSIG-ALLOW-DNSUPDATE and ALLOW-DNSUPDATE-FROM explanation. --- diff --git a/docs/dnsupdate.rst b/docs/dnsupdate.rst index 26c59c0dbc..c898a73186 100644 --- a/docs/dnsupdate.rst +++ b/docs/dnsupdate.rst @@ -112,28 +112,37 @@ This setting allows you to set the TSIG key required to do an DNS update. If you have GSS-TSIG enabled, you can use Kerberos principals here. An example, using :program:`pdnsutil` to create the key:: - $ pdnsutil generate-tsig-key test hmac-md5 - Create new TSIG key test hmac-md5 kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys= + $ pdnsutil generate-tsig-key test hmac-sha512 + Create new TSIG key test hmac-sha512 jMp41zXrTRKa9l9EGMj+9I9AL8exyIjXBdkFuNMJKv/UpNd83kFt+CrHQpuqBI8lf28xH1SrOFN1mr7QzOe7pQ== + + $ pdnsutil list-tsig-keys | grep test + test. hmac-sha512. jMp41zXrTRKa9l9EGMj+9I9AL8exyIjXBdkFuNMJKv/UpNd83kFt+CrHQpuqBI8lf28xH1SrOFN1mr7QzOe7pQ== Then adding that key with the name `test` and add the metadata:: - pdnsutil import-tsig-key test hmac-md5 'kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys=' - pdnsutil set-meta example.org TSIG-ALLOW-DNSUPDATE test + $ pdnsutil add-meta example.org TSIG-ALLOW-DNSUPDATE test + $ pdnsutil get-meta example.org TSIG-ALLOW-DNSUPDATE + TSIG-ALLOW-DNSUPDATE = test An example of how to use a TSIG key with the :program:`nsupdate` command:: - nsupdate < + $ nsupdate <