SOLVED How to edit two TTL values at the same time - WHM blocks this

spaceman

Well-Known Member
Mar 25, 2002
557
16
318
Hi All,

I recently had the need to greatly reduce the TTL values for two NS records in a DNS zone file.

But I couldn't change either of them, because it requires that the other be changed at the same time with the same new value.

But WHM doesn't allow us to edit two values at the same time for the same type of DNS records.

The workaround was to directly/manually edit the zone file /var/named/domain.com.db from the CLI.

IMHO this is a bug that needs to be fixed.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,526
2,607
363
cPanel Access Level
Root Administrator
At this point, there isn't a workaround using the interface, so these edits would need to be made on the command line. While it is correct that the values need to stay in sync, we should have a better way to do this in the interface, so I've created case CPANEL-43122 with our developers to look into this and see if a better option can be created. I'll post an update as soon as I have one to share!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,526
2,607
363
cPanel Access Level
Root Administrator
Update - it looks like you can do this work, but the interface isn't necessarily intuitive.

You can edit multiple records at once once with the Edit button, but then you need to use the "Save all records" in the top right of the page so they all save at the same time. Saving individual records will lead to the error.

Since there is a way to perform this work, I've closed that case and I'll mark this as Solved.
 

spaceman

Well-Known Member
Mar 25, 2002
557
16
318
OK, great, thanks for that - good spot!

Suggestion:

1. Make the error messages clearer when you attempt to edit just one TTL value
2. Make the 'Save All Records' button larger/clearer
3. Also put the 'Save All Records' button at the bottom of the page.

Thx again.