Closed
Description
Describe the bug
We upgraded Cortex from 1.10.0 to 1.13.1 recently. All the components run well except Cortex Querier. When I started Cortex Querier, it produced a lot of warn msg as following:
Nov 04 08:01:28 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:01:28.301903104Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
Nov 04 08:01:38 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:01:38.305297822Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
Nov 04 08:01:48 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:01:48.30911884Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
Nov 04 08:01:58 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:01:58.313291008Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
Nov 04 08:02:08 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:02:08.316010447Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
Nov 04 08:02:18 cos-cortex-1.13.1[1791959]: level=warn ts=2022-11-04T07:02:18.319513141Z caller=dns_resolver.go:225 msg="failed DNS A record lookup" err="lookup https on xx.xx.xx.xx:53: no such host"
xx.xx.xx.xx is the ip address of our DNS server. Although there's a lot of warn log, Querier behaves well.
To Reproduce
I guess the reason is the address of Cortex Query Frontend configured by -querier.frontend-address
.
Our Query-Frontend address is not an A record, it's a CName.
So maybe when a CName addres of Query-Frontend is specified, the warn log will be reproduced.
Expected behavior
Disable this warn log if it does not impact the functionality of querier.
Maybe it's the same as #4601 which was just fixed in v1.13.0.