Unverified Commit de4fbed8 by Björn Rabenstein Committed by GitHub

Merge pull request #8337 from prometheus/beorn7/sd

prevent adding empty target when CNAME is encountered
parents 0fd5ed06 31e86ed4
......@@ -213,6 +213,7 @@ func (d *Discovery) refreshOne(ctx context.Context, name string, ch chan<- *targ
target = hostPort(addr.AAAA.String(), d.port)
case *dns.CNAME:
// CNAME responses can occur with "Type: A" dns_sd_config requests.
level.Warn(d.logger).Log("msg", "Invalid record", "record", record)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment