Você deve recarregar a reconfiguração do nsd-control para permitir que as alterações do DKIM TXT entrem em vigor. Verifique o nsd.conf e assegure-se de que as entradas de zona apontem para os arquivos de zona corretos.
root@host:/etc/nsd# cat nsd.conf
server:
ip-address: 127.0.0.1
ip-address: 1.2.3.4
username: nsd
hide-version: yes
zonesdir: "/etc/nsd/zones/"
logfile: "/var/log/nsd.log"
pidfile: "/run/nsd/nsd.pid"
# zone entry for mydomain.com
zone:
name: mydomain.com
zonefile: mydomain.com.zone
root@host:/etc/nsd# vim nsd.conf
root@host:/etc/nsd# nsd-control reconfig
reconfig start, read /etc/nsd/nsd.conf
ok
root@host:/etc/nsd# opendkim-testkey -d mydomain.com -s mail -vvv
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key 'mail._domainkey.mydomain.com'
opendkim-testkey: key not secure
opendkim-testkey: key OK
root@host:/etc/nsd# dig @8.8.8.8 mail._domainkey.mydomain.com TXT +short
"v=DKIM1; h=sha256; k=rsa; p=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
root@host:/etc/nsd# nslookup -q=txt mail._domainkey.mydomain.com
ns1.mydomain.com
Server: ns1.mydomain.com
Address: 1.2.3.4#53
mail._domainkey.mydomain.com text = "v=DKIM1; h=sha256; k=rsa;
p=ABCDEFGHIJKLMNOPQRSTUVWXYZ" "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"