community.general/plugins/lookup
patchback[bot] d9d9148510
[PR #8970/8610223d backport][stable-8] dig lookup plugin: Fix using only last nameserver specified (#8985)
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:12 +02:00
..
bitwarden.py [PR #8557/6e0142fe backport][stable-8] bitwarden: Fix KeyError in search_field (#8549) (#8562) 2024-06-27 10:19:29 +00:00
bitwarden_secrets_manager.py [PR #8238/a05a5982 backport][stable-8] bitwarden_secrets_manager: implement rate limit retry with backoff (#8261) 2024-04-21 15:10:07 +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 Normalize more booleans. (#5247) 2022-09-06 20:42:17 +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 Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
credstash.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
cyberarkpassword.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01: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-8] dig lookup plugin: Fix using only last nameserver specified (#8985) 2024-10-05 15:17:12 +02:00
dnstxt.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
dsv.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
etcd.py [PR #7552/58705d5a backport][stable-8] More docs cleanup (#7579) 2023-11-23 06:18:57 +01:00
etcd3.py Improve seealso (#6766) 2023-06-22 13:16:22 +02:00
filetree.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
flattened.py Use semantic markup (modules a-c) (#6671) 2023-06-15 15:46:33 +02:00
github_app_access_token.py [PR #8114/69ab5eb1 backport][stable-8] Fix plugin call in example (#8120) 2024-03-20 08:30:39 +01:00
hiera.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01: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-8] merge_variables: correct misleading short description (#8590) 2024-07-06 21:31:42 +02:00
onepassword.py [PR #7919/6088e2dc backport][stable-8] fixes #7918 - onepassword lookup fails if field name contains uppercase letters and section is specified (#7975) 2024-02-17 12:29:48 +01:00
onepassword_doc.py [PR #7490/e0346d40 backport][stable-8] Add onepassword_doc lookup plugin (#7617) 2023-11-26 21:45:42 +01:00
onepassword_raw.py [PR #7490/e0346d40 backport][stable-8] Add onepassword_doc lookup plugin (#7617) 2023-11-26 21:45:42 +01:00
passwordstore.py [PR #8689/8989b6c4 backport][stable-8] Namespace the passwordstore lockfile (#8745) 2024-08-12 08:06:41 +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-8] (doc) random_string lookup: fix examples (#8841) 2024-09-08 14:45:38 +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 Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
revbitspss.py [PR #8087/22620752 backport][stable-8] Removed the redundant unicode prefixes (#8096) 2024-03-14 22:32:44 +01:00
shelvefile.py Lookups: use Ansible's config manager whenever possible (#5440) 2022-11-01 21:58:46 +01:00
tss.py tss lookup plugin - Fetch secret by path (#6881) 2023-07-14 19:43:14 +02:00