community.general/plugins/lookup
patchback[bot] d4c29e19c0
[PR #8970/8610223d backport][stable-9] dig lookup plugin: Fix using only last nameserver specified (#8986)
dig lookup plugin: Fix using only last nameserver specified (#8970)

* dig plugin: Fix using only last nameserver given

Currently, when specifying multiple nameservers
either using multiple `@ns.example.com` arguments
or by specifying multiple nameservers in a single
argument (@ns1.example.com,ns2.example.com), due
to a bug only the very last nameserver that is
specified is actually used.
This is because for every iteration of the
    for ns in nsset
loop, the local list of nameservers is cleared
and after adding the currently processed nameserver
entry, the whole `nameservers` list of the Resolver
instance is overridden with that new list with just
one element. And as far as I can see, when setting
that `nameserver` property, the dnspython library
actually overrides the existing list and doesn't
do some trickery to append the new nameservers or
something like that.

Therefore, the assignment of the `nameservers`
property of the Resolver is moved after the argument
processing so all nameservers are added and then
collectively written to the `nameservers` property
of the Resolver.

* Add CHANGELOG fragment

(cherry picked from commit 8610223d03)

Co-authored-by: JaegerMaKn <max.jaeger@knauf.com>
2024-10-05 15:17:17 +02:00
..
bitwarden.py [PR #8557/6e0142fe backport][stable-9] bitwarden: Fix KeyError in search_field (#8549) (#8563) 2024-06-27 10:19:35 +00:00
bitwarden_secrets_manager.py bitwarden_secrets_manager: implement rate limit retry with backoff (#8238) 2024-04-21 14:55:27 +02:00
cartesian.py stop passing loader/dataloader since it has been deprecated by ansible (#6074) 2023-02-25 15:29:27 +01:00
chef_databag.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
collection_version.py Drop support for ansible-core 2.11 and 2.12 (#7269) 2023-10-11 16:13:14 +02:00
consul_kv.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
credstash.py [PR #8822/7e978c77 backport][stable-9] use dict comprehension in plugins, part 2 (#8832) 2024-09-05 22:01:56 +02:00
cyberarkpassword.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
dependent.py Use semantic markup (modules a-c) (#6671) 2023-06-15 15:46:33 +02:00
dig.py [PR #8970/8610223d backport][stable-9] dig lookup plugin: Fix using only last nameserver specified (#8986) 2024-10-05 15:17:17 +02:00
dnstxt.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
dsv.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
etcd.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
etcd3.py Improve seealso (#6766) 2023-06-22 13:16:22 +02:00
filetree.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
flattened.py Use semantic markup (modules a-c) (#6671) 2023-06-15 15:46:33 +02:00
github_app_access_token.py Fix plugin call in example (#8114) 2024-03-20 08:15:38 +01:00
hiera.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
keyring.py Lookups: use Ansible's config manager whenever possible (#5440) 2022-11-01 21:58:46 +01:00
lastpass.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
lmdb_kv.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
manifold.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
merge_variables.py [PR #8580/a3989095 backport][stable-9] merge_variables: correct misleading short description (#8591) 2024-07-06 21:31:45 +02:00
onepassword.py [PR #8833/26df6c76 backport][stable-9] use dict comprehension in plugins, part 3 (#8835) 2024-09-08 14:46:13 +02:00
onepassword_doc.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
onepassword_raw.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
passwordstore.py [PR #8689/8989b6c4 backport][stable-9] Namespace the passwordstore lockfile (#8746) 2024-08-12 08:06:57 +02:00
random_pet.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
random_string.py [PR #8827/afd754e3 backport][stable-9] (doc) random_string lookup: fix examples (#8842) 2024-09-08 14:45:59 +02:00
random_words.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
redis.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
revbitspss.py Removed the redundant unicode prefixes (#8087) 2024-03-14 22:15:22 +01:00
shelvefile.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00
tss.py [PR #8626/daed4dcc backport][stable-9] Type options of lookup plugins (#8660) 2024-07-21 22:16:02 +02:00