Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re

### Changed

- [#7494](https://github.com/thanos-io/thanos/pull/7494) Ruler: remove trailing period from SRV records returned by discovery `dnsnosrva` lookups

### Removed

## [v0.36.0](https://github.com/thanos-io/thanos/tree/release-0.36) - in progress
Expand Down
4 changes: 3 additions & 1 deletion pkg/discovery/dns/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ func (s *dnsSD) Resolve(ctx context.Context, name string, qtype QType) ([]string
}

if qtype == SRVNoA {
res = append(res, appendScheme(scheme, net.JoinHostPort(rec.Target, resPort)))
// Remove the final dot from rooted DNS names (this is for compatibility with Prometheus)
target := strings.TrimRight(rec.Target, ".")
res = append(res, appendScheme(scheme, net.JoinHostPort(target, resPort)))
continue
}
// Do A lookup for the domain in SRV answer.
Expand Down