师傅请教一下

因为curl对AAAA和A记录的特殊处理,我们只要设置AAAA记录返回一个服务器ipv6的ip,A记录返回127.0.0.1

这样设置后,为什么curl总是优先127的地址

$ curl -V
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3

$ curl -v xxx.com
* Rebuilt URL to: xxx.com
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connect to 127.0.0.1 port 80 failed: Connetion refused
*   Trying ::ffff:104.52.xxx.xxx...
* TCP_NODELAY set
* Connect to xxx.com (::ffff:104.52.xxx.xxx) port 80 (#0)