Generate new DKIM keys/DNS records

firescanner

Verified User
Joined
Nov 24, 2014
Messages
5
Hi,

Can someone explain to me how to revoke/delete DKIM keys/DNS records and create a new one for an existing domain?

Eric
 
Hello Eric.

I guess this might work.
1.) remove the TXT record of x._domainkey in your DNS manager of your domain.
2.) Enter SSH and give this command:
Code:
cd /usr/local/directadmin/scripts
./dkim_create.sh domain.com

It should create a new DKIM key and dns record then (could take a minute).
 
Hello Eric.

I guess this might work.
1.) remove the TXT record of x._domainkey in your DNS manager of your domain.
2.) Enter SSH and give this command:
Code:
cd /usr/local/directadmin/scripts
./dkim_create.sh domain.com

It should create a new DKIM key and dns record then (could take a minute).


Before you generate the new keys you would have to remove the old keys from this dir
/etc/virtual/domain.com/
dkim.private.key
dkim.public.key

Then run
Code:
cd /usr/local/directadmin/scripts
./dkim_create.sh domain.com
Works as you would expect.
 
Lol I think after more then 1,5 years he might have found that out, if they are not overwritten automatically.

However let's say the reply is for "future references". ;)
 
Just for completeness, you indeed need to delete those files first otherwise it will not make new ones.
 
Back
Top