Hey, I've read the following support article. Plesk Email Security: DNS caching is disabled! Please use a local DNS server to improve SPAM recognition via blocklists (for instance systemd-resolved) because I get the following warning:
My
It even says
The correct way of enabling DNS caching:
If the output of
You don't need NetworkManager or resolveconf.
Showed exmaples based on Ubuntu 18.04, Plesk Obsidian Version 18.0.29 and Plesk Email Security 1.1.1
It says that I should edit the fileDNS caching is disabled! Please use a local DNS server to improve SPAM recognition via blocklists (for instance with Plesk's DNS BIND server component or systemd-resolved).
/etc/resolv.conf
. However, I think that this is wrong. You shouldn't manually update your resolv.conf file, because all changes will be overwritten after restarting your system or systemd-resolve.My
/etc/resolv.conf
Code:
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0
It even says
in the file.Do not edit.
The correct way of enabling DNS caching:
- Make sure there are no nameservers set in your netplan .yaml file (/etc/netplan)
- Edit
nano /etc/systemd/resolved.conf
, where you have to setDNS=127.0.0.1
.
You don't have to set theCache
option since it will be disabld for localhost anyways (Makes no sense to cache it twice).
/etc/resolv.conf
should be a symlink and if there has been no changes to the system, the content should look like the following:Code:nameserver 127.0.0.53 options edns0
- Restart systemd-resolved:
service systemd-resolved restart
- Verify your changes by checking
systemd-resolve --status
Code:
Global
DNS Servers: 127.0.0.1
...
host -tTXT 2.0.0.127.multi.uribl.com
is 2.0.0.127.multi.uribl.com descriptive text "permanent testpoint"
you are good to go.You don't need NetworkManager or resolveconf.
Showed exmaples based on Ubuntu 18.04, Plesk Obsidian Version 18.0.29 and Plesk Email Security 1.1.1
Last edited: