apisix icon indicating copy to clipboard operation
apisix copied to clipboard

feat: support configuring the order of the upstream dns service disco…

Open juststillthinking opened this issue 4 years ago • 0 comments

…very resolve

Description

Some users are having problems with the upstream DNS service discovery feature, because the current DNS resolution order is fixed: 1. "last" 2. "SRV" 3. "A" 4. "AAAA" 5. "CNAME". "last" means the last successful resolving method; that is, if the last resolving is successful, the last resolving method will be used first. This causes the problem that if for some reason the A record is resolved successfully, the higher priority SRV record will not be resolved in the future, and the user expects to get the result of resolving the SRV record.

As a user, I want to configure how and in what order the upstream DNS service discovery function resolves, and APISIX is able to resolve in the way and in the order I configure.

Checklist

  • [x] I have explained the need for this PR and the problem it solves
  • [x] I have explained the changes or the new features added to this PR
  • [x] I have added tests corresponding to this change
  • [ ] I have updated the documentation to reflect this change
  • [x] I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

juststillthinking avatar Sep 18 '22 14:09 juststillthinking