external-dns: External-dns fails to extract targets for SRV records on Azure

With SRV DNS records in our public Azure DNS zone, External-DNS logs the following error for each SRV record in the zone, every minute:

time="2020-01-22T19:58:04Z" level=error msg="Failed to extract targets for 'bbb.sub.domain.com' with type 'SRV'." time="2020-01-22T19:58:04Z" level=error msg="Failed to extract targets for 'aaa.sub.domain.com' with type 'SRV'."

This error is thrown on line #202 of the Azure provider because the list of targets for SRV records comes back empty.

The list of targets for SRV records is empty because the function that extract targets does not check for SRV record properties, so the default empty list is returned.

Relates to closed issue (closed because of inactivity) https://github.com/kubernetes-sigs/external-dns/issues/923

I’ve already forked the repo and I’ll check if I can contribute a fix.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 19 (4 by maintainers)

Most upvoted comments

Same issue here but with NS…

time="2020-12-17T19:50:38Z" level=error msg="Failed to extract targets for '<my>.<domain>.<tld>' with type 'NS'."

Also getting spammed with NS error messages, would love to see these PRs merged 👍

Since this issue has been opened for over a year without much success of getting a fix in, I’ll just close it.

According to a maintainer’s comment, it is unclear at the moment whether External-DNS should even manage NS, SRV and other records. I am not anywhere close enough to the design committee to figure or influence whether it should or shouldn’t.

A clean fix is impossible without a clear decision or directive on the above point.