community.general/plugins/lookup
JaegerMaKn 8610223d03
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
2024-10-05 15:03:04 +02:00
..
bitwarden.py bitwarden: Fix KeyError in search_field (#8549) (#8557) 2024-06-27 11:56:48 +02: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 Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +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 Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
credstash.py use dict comprehension in plugins, part 2 (#8822) 2024-09-05 21:47:28 +02:00
cyberarkpassword.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
dependent.py Use semantic markup (modules a-c) (#6671) 2023-06-15 15:46:33 +02:00
dig.py dig lookup plugin: Fix using only last nameserver specified (#8970) 2024-10-05 15:03:04 +02:00
dnstxt.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
dsv.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
etcd.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
etcd3.py Improve seealso (#6766) 2023-06-22 13:16:22 +02:00
filetree.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +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 Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +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 merge_variables: correct misleading short description (#8580) 2024-07-06 21:16:42 +02:00
onepassword.py use dict comprehension in plugins, part 3 (#8833) 2024-09-08 14:22:37 +02:00
onepassword_doc.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
onepassword_raw.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
passwordstore.py Namespace the passwordstore lockfile (#8689) 2024-08-12 07:33:07 +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 (doc) random_string lookup: fix examples (#8827) 2024-09-08 14:26:04 +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 Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
revbitspss.py Removed the redundant unicode prefixes (#8087) 2024-03-14 22:15:22 +01:00
shelvefile.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00
tss.py Type options of lookup plugins (#8626) 2024-07-21 21:03:41 +02:00