DNS Error Occurred , DKIM,SPF

Operating System & Version
CENTOS 7.9
cPanel & WHM Version
94.0.11

dxb04

Well-Known Member
Dec 27, 2020
67
4
8
UAE
cPanel Access Level
Root Administrator
I was trying to enable DKIM and add a DNS record for a domain ,,

At the page " Enable DKIM/SPF Globally "
I click proceed to enable the feature , and wait for a long time , but nothing happen

I check at " Email Deliverability" page and i found there a DNS Error ( Screenshot attached )

In general , how to enable DKIM and why i got this error ?
 

Attachments

Last edited by a moderator:

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
It looks like it was not able to update DNS. Do any of the DNS zones show DKIM entry?
Is DNS running on the server?
 

dxb04

Well-Known Member
Dec 27, 2020
67
4
8
UAE
cPanel Access Level
Root Administrator
It looks like it was not able to update DNS. Do any of the DNS zones show DKIM entry?
Is DNS running on the server?
I add a DKIM entry to one of the domains as i want to use an external email service provider ..

I think it is running ..
the websites running too ..

is there any command that may help to check the status of DNS ?
 

dxb04

Well-Known Member
Dec 27, 2020
67
4
8
UAE
cPanel Access Level
Root Administrator
at terminal use something like systemctl status named
This is the result


[root@server ~]# systemctl status named
â named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/named.service.d
ââcpanel.conf
Active: inactive (dead)

 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
Like it says, it is dead

Try this now.

systemctl restart named
systemctl status named
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
Sorry just noticed that your DNS is disabled?
Is this your server or reseller account?
 

dxb04

Well-Known Member
Dec 27, 2020
67
4
8
UAE
cPanel Access Level
Root Administrator
Like it says, it is dead

Try this now.

systemctl restart named
systemctl status named
This was the result of the last command "systemctl status named"


â named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/named.service.d
ââcpanel.conf
Active: active (running) since Tue 2023-03-07 01:43:26 +04; 9s ago
Process: 18225 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
Process: 18220 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=0/SUCCESS)
Main PID: 18226 (named)
CGroup: /system.slice/named.service
ââ18226 /usr/sbin/named -u named -c /etc/named.conf

Mar 07 01:43:25 web.com named[18226]: automatic empty zone: view internal: EMPTY.AS112.ARPA
Mar 07 01:43:25 web.com named[18226]: automatic empty zone: view internal: HOME.ARPA
Mar 07 01:43:25 web.com named[18226]: none:104: 'max-cache-size 90%' - setting to 57644MB (out of 64048MB)
Mar 07 01:43:25 web.com named[18226]: set up managed keys zone for view external, file 'external.mkeys'
Mar 07 01:43:25 web.com named[18226]: none:104: 'max-cache-size 90%' - setting to 57644MB (out of 64048MB)
Mar 07 01:43:25 web.com named[18226]: configuring command channel from '/etc/rndc.key'
Mar 07 01:43:25 web.com named[18226]: command channel listening on 127.0.0.1#953
Mar 07 01:43:25 web.com named[18226]: configuring command channel from '/etc/rndc.key'
Mar 07 01:43:25 web.com named[18226]: command channel listening on ::1#953
Mar 07 01:43:26 web.com systemd[1]: Started Berkeley Internet Name Domain (DNS).

 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
Then you need to go into WHM and enable a DNS service in the service configuration -> Nameserver Selection section.
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
270
59
178
Then you were able to restart the server? I see it is now running 9s.

retry try the DKIM setup.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
The output of "dead" is normal from the systemctl command mentioned earlier, and is likely not relevant to your DNS issues. This is because modern cPanel servers use PowerDNS so you'll see the PDNS process running as the "named" user on the system if you check ps aux:

Code:
# ps aux | grep named
named    2911610  0.0  0.9 1174812 35740 ?       Ssl  Feb22   2:21 /usr/sbin/pdns_server --socket-dir=/run/pdns --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
You'll want to check the zone file to see if the records were added.
 

dxb04

Well-Known Member
Dec 27, 2020
67
4
8
UAE
cPanel Access Level
Root Administrator
The output of "dead" is normal from the systemctl command mentioned earlier, and is likely not relevant to your DNS issues. This is because modern cPanel servers use PowerDNS so you'll see the PDNS process running as the "named" user on the system if you check ps aux:

Code:
# ps aux | grep named
named    2911610  0.0  0.9 1174812 35740 ?       Ssl  Feb22   2:21 /usr/sbin/pdns_server --socket-dir=/run/pdns --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
You'll want to check the zone file to see if the records were added.
Like so : ?


[root@server ~]# ps aux | grep named
named 18499 0.0 0.0 515188 12716 ? Ssl 01:45 0:00 /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
root 20329 0.0 0.0 112808 976 pts/0 S+ 02:01 0:00 grep --color=auto named
[root@server ~]# named 2911610 0.0 0.9 1174812 35740 ? Ssl Feb22 2:21 /usr/sbin/pdns_server --socket-dir=/run/pdns --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-E engine] [-f|-g]
[-n number_of_cpus] [-p port] [-s] [-S sockets] [-t chrootdir]
[-u username] [-U listeners] [-m {usage|trace|record|size|mctx}]
usage: named [-v|-V]
named: extra command line arguments



Or you you meant to change "named" with system user "root" ?!