Sorry, I forgot that one. Looking at it, it shows all used IP's, which I would have to anonymize. If it's necessary, I'll do that, but given you said "leave that, for the moment" let's see if it works without.
Yep. The content
might become relevant later on, if the issue is not resolved beforehand
Yes, those datacenter nameservers are specified in /etc/netplan settings (and /run/systemd/network and /run/systemd/resolve/resolved.conf contain the identical ones) - the netplan settings are templated, I use multiple VM's (this is one as well) with the same settings for different purposes.
Okay understood. Yes we use VM's too, but our configs
will be different from your own, so we can't add any useful, related comments
here, at this stage
However, it would appear that everything you've posted above (brief config details) should allow everything to function, as you intended it too, so...
It would be fine to get this to work by changing the original netplan settings, though I'd prefer to not touch them and just have an overwrite that can force the local resolver, as I might want to easily turn that off in the future when the feature is no longer necessary or moved to a different VM. I have tried to do that already, though, and when using 127.0.0.1 in the netplan settings, the VM is no longer able to resolve any domains.
Did the use of 127.0.0.1 arrive recently via some Plesk changes / updates? ***
Or, was it a change you specifically applied yourselves, maybe... in order to try to achieve local resolver functionality?
/etc/resolv.conf is a symlink to stub-resolv.conf, yes
Yep. Makes sense with the rest of your posted brief config details
For spamhaus we use their free service offered with registration which is fine to use with public resolvers. But other spamlists used do not offer a free contingent with registration or no registration at all and cannot be used, but are vital to our spam blocking.
Yes, spamhaus are far more "assistive" aren't they?
Another config difference (which, is
possibly,
one of the reasons we don't have the issue you have) is our use of Danami Juggernaut. Presumably, you're using Plesk Firewall (and maybe a.n.other firewall too) plus, Fail2Ban? This is technically not possible, when using Danami Juggernaut. In addition; Although Ubuntu 22.04 / 24.04 etc all use nftables (not iptables) by default, ConfigServer Security & Firewall (csf)
currently still uses the iptables interface, so, we also,
do need to use;
iptables-nft, which provides a bridge to the
nftables kernel API and infrastructure, in order to run Danami Juggernaut (which uses csf) correctly. Thinking that you (probably) don't (need to) use
iptables-nft anyway? Regardless, the use of
iptables-nft will almost certainly
not be related to your 'resolve' issue
That is correct. If you ask for the why - I don't know. We only ever adjusted the /etc/netplan settings, everything else is Ubuntu default and wasn't touched. Seemingly the other files get automatically generated based on the netplan file - which the command posted here was supposed to stop, as far as I understood.
Understood. We did a lot of work on our netplan configs (in order for it all to work as we wanted it to, with the default IONOS Cloud servers config). Threfore, this is another config difference, which means, that again, we can't add any useful, related comments
here, at this stage, that might relate to your 'resolve' issue
And yes, the datacenter DNS servers are public resolvers provided by our datacenter provider.
Another config difference (see preceding)
As noted, I would have expected this command to make the necessary changes to use a static local resolver without that reverting, seemingly that is not the case though.
The command you're referring to is post #19 in this thread isn't it?
It's a command that we have no need to use, because we don't have the stated 'resolve' issue that needs "correcting"
We're both on the same Ubuntu OS and the same Plesk release on our server(s), but that's where the commonality ends, really...
It would be a lot of work to compare all of the itmes that we've mentioned so far (line by line) but that's possibly the only way...
We've got proof of concept: We're both on the same Ubuntu OS and the same Plesk release, but you have the issue, we don't
"The devil is in the detail" somewhere... within the two different configs!
*** Only raised this, because Plesk is custom-configured to run on different OS's (and variations of them...) but this doesn't always see eye-to-eye with the OS itself... Example: If you run :~#
aptitude and wait for the cli / gui to load, how many 'broken' packages are currently being reported on any of your servers?
In our case, it's just 13, but... ALL of them are Plesk Packages

and the "suggested" resolution is to
remove them all...
Obviously, we've ignored that, as Plesk and Ubuntu 24.04.* LTS ARE compatible, just not in the default Ubuntu / Aptitude preferred way it appears...
However any of these subtle differences,
might occasionally cause issues that say Ubuntu 24.04.* LTS with a.n.other platform (e.g. C-Panel) doesn't suffer from
So a long-shot here, is, that the (current) specific config of your own Plesk and Ubuntu 24.04.* LTS setup, triggers one of these subtle differences aka The Issue!