plugin/etcd: Fix multi record TXT lookups (#5293)

* fix multi-record txt

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2022-04-04 14:59:16 -04:00
committed by GitHub
parent 38ff869d69
commit 4d76faa4b4
5 changed files with 40 additions and 23 deletions

View File

@@ -221,12 +221,14 @@ If you query the zone name for `SRV` now, you will get the following response:
If you would like to use `TXT` records, you can set the following:
~~~
% etcdctl put /skydns/local/skydns/x6 '{"ttl":60,"text":"this is a random text message."}'
% etcdctl put /skydns/local/skydns/x7 '{"ttl":60,"text":"this is a another random text message."}'
~~~
If you query the zone name for `TXT` now, you will get the following response:
~~~ sh
% dig +short skydns.local TXT @localhost
"this is a random text message."
"this is a another random text message."
~~~
## See Also