ShenFeng312 opened a new issue, #10896:
URL: https://github.com/apache/apisix/issues/10896
### Current Behavior
DNS client has removed all results from the DNS server that are either of a
different type or have a different name.
### Expected Behavior
DNS client should not remove them
### Error Logs
you can get log use
[cliet.lua](https://github.com/ShenFeng312/lua-resty-dns-client/blob/master/src/resty/dns/client.lua).
2024/01/25 18:08:35 [warn] 32#32: *13313 [lua] client.lua:1132: resolve():
[dns-client] resolve qname:www.baidu.comopts:nulltry_listnull, client:
127.0.0.1, server: _, request: "GET /proout HTTP/1.1", host: "localhost:9080"
2024/01/25 18:08:35 [warn] 32#32: *13313 [lua] client.lua:1154: resolve():
[dns-client] from cache try_name:www.baidu.comqtype:nil records:null, client:
127.0.0.1, server: _, request: "GET /proout HTTP/1.1", host: "localhost:9080"
2024/01/25 18:08:35 [warn] 32#32: *13314 [lua] client.lua:642:
parseAnswer(): [dns-client] parseAnswer
qname:www.baidu.com.jck-namespace-50714.svc.cluster.localqtype1, context:
ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
2024/01/25 18:08:35 [warn] 32#32: *13314 [lua] client.lua:672:
parseAnswer(): [dns-client]
remove{"class":1,"section":1,"ttl":10,"address":"220.181.38.150","type":1,"name":"www.a.shifen.com"},
context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
2024/01/25 18:08:35 [warn] 32#32: *13314 [lua] client.lua:672:
parseAnswer(): [dns-client]
remove{"class":1,"section":1,"ttl":10,"address":"220.181.38.149","type":1,"name":"www.a.shifen.com"},
context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
2024/01/25 18:08:35 [warn] 32#32: *13314 [lua] client.lua:672:
parseAnswer(): [dns-client]
remove{"class":1,"section":1,"cname":"www.a.shifen.com","ttl":10,"type":5,"name":"www.baidu.com"},
context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
2024/01/25 18:08:35 [warn] 32#32: *13314 [lua] client.lua:672:
parseAnswer(): [dns-client]
remove{"class":1,"section":1,"cname":"www.baidu.com","ttl":10,"type":5,"name":"www.baidu.com.jck-namespace-50714.svc.cluster.local"},
context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:9080
### Steps to Reproduce
1. use defaut apisix config and use search list in resolv.conf
2. upsteam config with www.baidu.com
3. make dns result like this
{"class":1,"section":1,"ttl":10,"address":"220.181.38.150","type":1,"name":"www.a.shifen.com"}
{"class":1,"section":1,"ttl":10,"address":"220.181.38.149","type":1,"name":"www.a.shifen.com"}
{"class":1,"section":1,"cname":"www.a.shifen.com","ttl":10,"type":5,"name":"www.baidu.com"}
{"class":1,"section":1,"cname":"www.baidu.com","ttl":10,"type":5,"name":"www.baidu.com.searchlistitem"}
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]