• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue DNS Settings bind9 nameserver 127.0.0.1 slow http API calls

Mark12345

Basic Pleskian
Server operating system version
Ubuntu 22.04.1 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.48
When looking at config check in the Plesk Email Security plugin it says DNS caching is disabled and there is a tutorial that says that nameserver 127.0.0.1 should be added to etc/resolv.conf. But Ubuntu is using Bind9 and adding this apparently slows down http API calls.


Plesk Email Security DNS cache.jpg


But adding this to the top of /etc/resolvconf/resolv.conf.d/head does clear the warning. So maybe it is simply looking for a response # host -tTXT 2.0.0.127.multi.uribl.com which seems to look for 127.0.0.1 and if it doesn't see one it refuses the query.

Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
search domainname.com
nameserver 127.0.0.1
nameserver 8.8.4.4
nameserver 8.8.8.8

Everything seems to be working fine when /etc/resolvconf/resolv.conf.d/head has the following. There is just that warning about DNS cache disabled. Is there anything that should be added to this specific to bind9 that would enable cache?

Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
search domainname.com
nameserver 8.8.4.4
nameserver 8.8.8.8
 
Code:
root@mail:~# service systemd-resolve --status
systemd-resolve: unrecognized service
root@mail:~# systemd-resolve --status^C
root@mail:~# systemctl status systemd-resolved.service
● systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-12-10 22:38:29 PST; 4 days ago
       Docs: man:systemd-resolved.service(8)
             man:org.freedesktop.resolve1(5)
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
   Main PID: 1087 (systemd-resolve)
     Status: "Processing requests..."
      Tasks: 1 (limit: 154362)
     Memory: 4.5M
        CPU: 1.833s
     CGroup: /system.slice/systemd-resolved.service
             └─1087 /lib/systemd/systemd-resolved

Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address '127.0.0.1#', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'Dynamic', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'resolv.conf(5)', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'file', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'for', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'glibc', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'resolver(3)', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'generated', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'by', ignoring: Invalid argument
Dec 13 09:48:08 mail.ultracornhole.com systemd-resolved[1087]: Failed to add DNS server address 'resolvconf(8)', ignoring: Invalid argument
 
Back
Top