Skip to content

LINODE: TTL does not support "Default" (0) #2440

Closed
@str4d

Description

@str4d

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 in dnsconfig.js for any record, leaving it at the dnscontrol default.

When I run dnscontrol preview, every record is marked as a modification such as:

#1: MODIFY A example.com: (1.2.3.4 ttl=0) -> (1.2.3.4 ttl=300), Linode ID: NNN: {"type":"A","name":"","target":"1.2.3.4","ttl_sec":300}

To Reproduce

  1. Configure a domain name to use Linode for DNS records.
  2. Add a DNS A record to Linode with some label and IP, and leave the TTL as "Default".
  3. Write a dnsconfig.js with the same A record label and IP, and no configured TTL.
  4. dnscontrol preview

Expected behavior
No modifications should be proposed.

Versions

  • DNSControl version: 4.1.1 (Homebrew)
  • DNS Provider: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions