Skip to content

First creation of record only generates 1 A record, second creation generates 1 A record + 1 TXT record #5894

@jluriot

Description

@jluriot

What happened:
After upgrading to v0.19.0, when a new record is created, it only creates 1 A record. This is not the expected behavior as it should be creating 1 A record and 1 TXT record so it can manage that new record.
After manually deleting the A record, then it creates the expected result.

# Creates new record (1 record A)
time="2025-10-07T09:56:54Z" level=info msg="Applying provider record filter for domains: [xxxxx.xxx. .xxxxx.xxx.]"
time="2025-10-07T09:56:54Z" level=info msg="Desired change: CREATE xxxxxxx.xxxxx.xxx A" profile=default zoneID=/hostedzone/XXXXXXXXXXXXX zoneName=xxxxx.xxx.
time="2025-10-07T09:56:54Z" level=info msg="1 record(s) were successfully updated" profile=default zoneID=/hostedzone/XXXXXXXXXXXXX zoneName=xxxxx.xxx.

# Manually deleted the first created record A (I waited to see if it created the TXT record afterwards)
time="2025-10-07T09:58:55Z" level=info msg="Applying provider record filter for domains: [xxxxx.xxx. .xxxxx.xxx.]"
time="2025-10-07T09:58:55Z" level=info msg="All records are already up to date"

# Now it creates 1 TXT record and 1 A record
time="2025-10-07T09:59:56Z" level=info msg="Applying provider record filter for domains: [xxxxx.xxx. .xxxxx.xxx.]"
time="2025-10-07T09:59:56Z" level=info msg="Desired change: CREATE cname-xxxxxxx.xxxxx.xxx TXT" profile=default zoneID=/hostedzone/XXXXXXXXXXXXX zoneName=xxxxx.xxx.
time="2025-10-07T09:59:56Z" level=info msg="Desired change: CREATE xxxxxxx.xxxxx.xxx A" profile=default zoneID=/hostedzone/XXXXXXXXXXXXX zoneName=xxxxx.xxx.
time="2025-10-07T09:59:56Z" level=info msg="2 record(s) were successfully updated" profile=default zoneID=/hostedzone/XXXXXXXXXXXXX zoneName=xxxxx.xxx.

What you expected to happen:
The first time, 1 A record and 1 TXT record should have been created.

How to reproduce it (as minimally and precisely as possible):
Allow external-dns to detect a new record (AWS, deployed in EKS). It should create a single A record. Delete that record. Then it should create 1 A record and 1 TXT record.

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): v0.19.0
  • DNS provider: AWS
  • Others:
        - --source=service
        - --source=ingress
        - --domain-filter=xxxxx.xxx
        - --provider=aws
        - --policy=sync 
        - --aws-zone-type=public
        - --registry=txt
        - --txt-owner-id=XXXXXXXXXXXX
        - --exclude-record-types=AAAA

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions