This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 30411d4  docs(discovery): make dns query order clear (#5033)
30411d4 is described below

commit 30411d44d9bf3812c3f664897b2cf7d6ccdf048e
Author: 罗泽轩 <[email protected]>
AuthorDate: Sat Sep 11 19:09:08 2021 +0800

    docs(discovery): make dns query order clear (#5033)
    
    See https://github.com/apache/apisix/pull/5023/files#r705594923
    
    Signed-off-by: spacewander <[email protected]>
---
 docs/en/latest/discovery/dns.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/en/latest/discovery/dns.md b/docs/en/latest/discovery/dns.md
index 65be2cc..d169463 100644
--- a/docs/en/latest/discovery/dns.md
+++ b/docs/en/latest/discovery/dns.md
@@ -66,7 +66,9 @@ and `test.consul.service` be resolved as `1.1.1.1` and 
`1.1.1.2`, this result wi
 
 Note that all the IPs from `test.consul.service` share the same weight.
 
-If a service has both A and AAAA records, A record is preferred.
+The resolved records will be cached according to their TTL.
+For service whose record is not in the cache, we will query it in the order of 
`SRV -> A -> AAAA -> CNAME`.
+When we refresh the cache record, we will try from the last previously 
successful type.
 
 If you want to specify the port for the upstream server, you can add it to the 
`service_name`:
 

Reply via email to