Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Validate absolute DNS name requirement on StaticDNS CNAME #4743

@jhg03a

Description

@jhg03a

I'm submitting a ...

  • bug report
  • new feature / enhancement request
  • improvement request (usability, performance, tech debt, etc.)
  • other

Traffic Control components affected ...

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • unknown

Current behavior:

When I was creating a Static DNS CNAME record, I added domain.foo.com to a new DS and snapshotted.
This causes the snapshot to fail to apply with no user feedback except to go dig around in TR logs.

Expected / new behavior:

Please remove the footgun of forgetting the trailing dot in the CNAME address and better safeties to prevent it from becoming part of a snapshot.

Minimal reproduction of the problem with instructions:

  1. Add a staticDNS CNAME record with address lacking the final period.
  2. Snapshot
  3. Observe the Snapshot fails to apply
  4. Add a trailing period to the address field of record from 1.
  5. Snapshot
  6. Observe things work after head banging

Anything else:

WARN  2020-05-30T01:57:54.921 [New I/O worker #8] com.comcast.cdn.traffic_control.traffic_router.core.util.PeriodicResourceUpdater - 'ccr.testds.cdn.domain.com' is not an absolute name
org.xbill.DNS.RelativeNameException: 'domain.foo.com' is not an absolute name
        at org.xbill.DNS.Record.checkName(Record.java:721)
        at org.xbill.DNS.SingleNameBase.<init>(SingleNameBase.java:33)
        at org.xbill.DNS.SingleCompressedNameBase.<init>(SingleCompressedNameBase.java:23)
        at org.xbill.DNS.CNAMERecord.<init>(CNAMERecord.java:28)
        at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.addStaticDnsEntries(ZoneManager.java:703)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1bugsomething isn't working as intendeddocumentationrelated to documentationhigh impactimpacts the basic function, deployment, or operation of a CDNimprovementThe functionality exists but it could be improved in some way.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions