community.general/changelogs/fragments
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
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
8.6.6.yml Prepare 8.6.6 release. 2024-09-28 08:35:12 +03:00
8785-keycloak_user_federation-set-krbPrincipalAttribute-to-empty-string-if-missing.yaml [PR #8785/ac302eb7 backport][stable-8] keycloak_user_federation: set krbPrincipalAttribute to '' if unset in kc responses (#8891) 2024-09-21 10:42:36 +03:00
8812-keycloak-user-federation-remove-lastSync-param-from-kc-responses.yml [PR #8812/5d9a7ab2 backport][stable-8] keycloak_user_federation: remove lastSync param from kc API responses (#8976) 2024-10-03 16:12:53 +03:00
8877-keycloak_realm-sort-lists-before-change-detection.yaml [PR #8877/deaad6e5 backport][stable-8] keycloak_realm: fix change detection in check mode by normalizing realms beforehand (#8902) 2024-09-23 21:46:35 +03:00
8887-fix-one_service-unique.yml [PR #8887/0bc5f248 backport][stable-8] one_service: fix recreation (#8931) 2024-09-26 11:38:30 +03:00
8900-ipa-hostgroup-fix-states.yml [PR #8900/a32f1d69 backport][stable-8] ipa_hostgroup: fix state params (#8905) 2024-09-23 21:46:23 +03:00
8925-atomic.yml [PR #8925/7c913b23 backport][stable-8] Pass absolute paths to atomic_move() (#8958) 2024-10-01 22:52:53 +03:00
8970-fix-dig-multi-nameservers.yml [PR #8970/8610223d backport][stable-8] dig lookup plugin: Fix using only last nameserver specified (#8985) 2024-10-05 15:17:12 +02:00