Automatically signing DNSSEC was not working (Feb 1 2023)

sec-is

Verified User
Joined
Feb 14, 2020
Messages
100
A few weeks ago (Feb 6) I had a domain (2 in total, plus subdomains) not getting the DNSSEC signed automatically.
There are no errors that I know of, so I had to sign it manually (since the domain and subdomains were offline), and then I looked for a solution.
On the DA page it says it is done monthly, and you do not need to put it in your crontab.
"MONTHLY RESET will automatically re-sign all zones that have keys and already signed"

Thank you for giving the solution: I added
echo "action=rewrite&value=dnssec" >> /usr/local/directadmin/data/task.queue in my crontab to run every Sunday morning.

Today on an different server with a DNSSEC domain I got called by the customer: domains are offline!
And sure thing: DA did not sign this domain automatically.
So I signed the domain, and again added the cronjob task.

Would this be sufficient?
I went back to the previous server, and see that the domains on that server have not been signed 'automatically'. They are on the same date (Feb 6).

I am now wondering. Does "action=rewrite&value=dnssec" only work on expired signed domains?
If that is the case, then I would need to run it every day, and that would be acceptable to me (even though it is not my duty to process this, DA should have to do this).

There may be a catch. Perhaps DA renews when DNSSEC is exactly 30 days ago signed? Because the real expiration for the signature is 'last date updated + 35 days', example:
Signed Feb 6 03:14 2023 Expiry: Mar 13 03:14 2023

What now happens is that I am forced to keep an eye on this daily. Unless DA fixes this problem.
To mitigate, I updated the cron and have it check daily. In March I will see if this helped (unless DA debugs and solves this).

DA is updating itself very often with 'micro fixes' so my servers are always up to date, I do have the latest version available.
Before Feb 6 I did not have this problem (the domains were signed monthly as I added DNSSEC over a year ago), so it is a new bug and no one noticed it.
Does anyone else have this issue, or am I the only one? (I don't have support otherwise I would ask DA directly).
 
March 1 ar 4:20 AM on several servers DNSSEC was signed.
Was it fixed?
I do understand why they say 'once a month' and they mean 1st of the month. This means Feb 1 2023 it did not work for some reason.
And since Nobody responds to this problem, I will keep an eye on this, as I can not afford it so many sites go offline the same moment. It is even difficult to find WHY sites are offline, since some DNS providers do not check DNSSEC at all. I do know google 8.8.88. does check it.
 
so it is a new bug and no one noticed it.
Or it's not a new bug and only your system is having issues. I presume you did all the steps to enable dnssec for the domains, including changing the directadmin.conf and manually creating the initial dnssec keys (because DA won't do that automatically).
If you did then I don't know what is happening on your server.

I have several domains signed with DNSSEC, which you also have to do at the registrar of the domain.
These domains on 2 different servers are having these keys already for several years. No problems at all. Which might be the reason nobody is complaining about it. So it might not be a bug.

Maybe it's best to send in a ticket for your system to let DA check out why it's not working as designed on your system.
 
It seems to be DA related. It happened on several systems. It just stopped working, but was working since 2021.

Manually calling DA (crontab) did not work, I assume their code checks if it is the 1st of a month.

I left my story out here, 'just in case' someone searches for it. And that it has been fixed.
 
I've actually had this issue again today where one of my domains was not resigned automatically and expired. Took 4 days before it got noticed. And it happened before too. So now i wrote a bash script with the help of chatGPT that checks all zones and if one is about to expire within 24 hours (which should not happen if all is good, because expiration is 35 days and it renews every 1st of the month so max 31 days) or is expired it will create a notification for the admin. I added it to crontab so it runs every day at 6 am and checks all the signed domains in /var/named folder. It also allows to check for a single domain (manually) if you like.
 
i wrote a bash script with the help of chatGPT that checks all zones and if one is about to expire within 24 hours or is expired it will create a notification for the admin. I added it to crontab so it runs every day at 6 am and checks all the signed domains in /var/named folder. It also allows to check for a single domain (manually) if you like.
.. mind to share your script here?
 
I'll add it to the scripting section of the forum and will post a link here. it'll go on github so all can contribute to it. There is probably room enough for improvement anyways. 😅
 
Still find it odd. My domains with DNSSEC are moved since my last reply to another server and still no issues with DNSSEC.
Or... 1 domain no issues, with the other one all is green except this line:
No DS records found for mydomain.org in the org zone
But that was a mistake on my side or registrars, the dnssec key at the registrar was gone.
 
Last edited:
Back
Top