-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LINODE: TTL does not support "Default" (0) #2440
Comments
The dnscontrol/providers/linode/linodeProvider.go Lines 126 to 133 in d00804b
From that file, it appears that Linode did support a |
Linode's own documentation confirms that the default TTL is still one day. |
CC @koesie10 Interesting bug! That raises an interesting question. Should allowedTTLValues (
0 or should the fixTTL function turn 0 into 86400? (I think the first option)
|
I personally agree that 0 should be allowed as a setting, because that is what the Linode API is returning when "Default" is set via their UI. If The question though is whether |
I agree that I have created a PR for this, which also updates the docs. I'm just finding conflicting information about what
I've taken the value from the API documentation since that's what the provider is using, but I'm not sure if that actually matches with what Linode does. |
@koesie10 I think you were looking at the wrong part of that documentation.
AFAICT the default is still 1 day for |
Fixed the comment as part of #2444. |
Describe the bug
I set up a
dnsconfig.js
matching the records for a domain I manage through Linode. All of the records in Linode have their TTL column set to "Default". I do not configure an explicit TTL indnsconfig.js
for any record, leaving it at thednscontrol
default.When I run
dnscontrol preview
, every record is marked as a modification such as:To Reproduce
dnsconfig.js
with the same A record label and IP, and no configured TTL.dnscontrol preview
Expected behavior
No modifications should be proposed.
Versions
LINODE
Additional context
The
LINODE
provider documentation has a caveat that the TTLs must be from a specific list. The file that it links to does not exist in the Linode source tree anymore. When I searched for an equivalent list, I found this one that explicitly includes the option{ label: 'Default', value: 0 }
.https://github.com/linode/manager/blob/07be31a25399c8583a55a3727b8a38e0a6e25cd7/packages/manager/src/features/Domains/DomainRecordDrawer.tsx#L320-L336
The text was updated successfully, but these errors were encountered: