You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/24 01:57:34 UTC
[GitHub] [apisix] zhantanfeng opened a new issue #6700: help request: apisix在解析域名时失败,出现循环
zhantanfeng opened a new issue #6700:
URL: https://github.com/apache/apisix/issues/6700
### Description
在双栈k8s集群中,利用apisix进行流量转发,出现解析域名失败的情况,具体日志如下:

但是在ping这个域名时,已经解析出了这个地址

在apisix的配置文件中也已经开启了ipv6

apisix版本为:2.5
k8s版本为1.21.5
etcd版本为:3.4.9
请问改如何解决呢?
### Environment
- APISIX version (run `apisix version`):2.5
- Operating system (run `uname -a`):Linux dev-node11 4.19.25-200.1.el7.bclinux.x86_64
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): openresty/1.19.3.1
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): 3.4.9
- 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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081391873
>
> Don't forget to wrap the address with `""`, as there is a `:` in IPv6 address and will be recoginized as map if `""` is not given.
Here is the config file,but is failed too.

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1077004504
>
I will try with APISIX 2.12, but I tried with 2.13, it can not run.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1077001912
Can it be reproduced with the APISIX 2.12?
Would you like to provide a packet capture file when APISIX failed to resolve the address and the one for ping?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081344154
> Does manually configuring the nameserver in
>
> https://github.com/apache/apisix/blob/542569091d4b6a40b9d560c4fe76077ee9dba087/conf/config-default.yaml#L120
>
> can solve the problem?
You mean config dns_resolver with "8.8.8.8" or others? it can not solve the problem, I have tried it. Now it uses zhe cluster DNS server, but failed too.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080307406
I have just read the pcap file.
Look like the server queried 114.114.114.114 / 1.1.1.1 / 223.5.5.5 and got "No such name".
Could you provide a successful case's pcap with ping?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081347430
dns_resolver with "fd11:..."
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng closed issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng closed issue #6700:
URL: https://github.com/apache/apisix/issues/6700
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080124749
> > >
> >
> >
> > I will try with APISIX 2.12, but I tried with 2.13, it can not run.
>
> If 2.13 has the same problem, 2.12 also suffers from it. Let me see the packet capture file.
![Uploading image.png…]()
here is the packet capture file screenshot.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081366935
Don't forget to wrap the address with `""`, as there is a `:` in IPv6 address and will be recoginized as map if `""` is not given.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng edited a comment on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng edited a comment on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080124749
> > >
> >
> >
> > I will try with APISIX 2.12, but I tried with 2.13, it can not run.
>
> If 2.13 has the same problem, 2.12 also suffers from it. Let me see the packet capture file.

here is the packet capture file screenshot.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080268996
> You can attach the pcap file in this issue.
I have uploaded the pcap file.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng edited a comment on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng edited a comment on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081391873
>
> Don't forget to wrap the address with `""`, as there is a `:` in IPv6 address and will be recoginized as map if `""` is not given.
Here is the config file,but is failed too.

[cm.zip](https://github.com/apache/apisix/files/8368066/cm.zip)
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng edited a comment on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng edited a comment on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080124749
> > >
> >
> >
> > I will try with APISIX 2.12, but I tried with 2.13, it can not run.
>
> If 2.13 has the same problem, 2.12 also suffers from it. Let me see the packet capture file.


here is the packet capture file screenshot.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander edited a comment on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander edited a comment on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081360267
What error?
Can you provide a full configuration so we can reproduce it?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081644070
@spacewander @tokers Thank you very much! You solved the problem!
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1077007841
> >
>
> I will try with APISIX 2.12, but I tried with 2.13, it can not run.
If 2.13 has the same problem, 2.12 also suffers from it. Let me see the packet capture file.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng edited a comment on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng edited a comment on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080355832
> I have just read the pcap file. Look like the server queried 114.114.114.114 / 1.1.1.1 / 223.5.5.5 and got "No such name".
>
> Could you provide a successful case's pcap with ping?
It's a successful case, but not same environment with the error case.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080355832
> I have just read the pcap file. Look like the server queried 114.114.114.114 / 1.1.1.1 / 223.5.5.5 and got "No such name".
>
> Could you provide a successful case's pcap with ping?
It's a successful case, but not same environment with the error case.
[tcpdump.zip](https://github.com/apache/apisix/files/8361046/tcpdump.zip)
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081341966
Does manually configuring the nameserver in https://github.com/apache/apisix/blob/542569091d4b6a40b9d560c4fe76077ee9dba087/conf/config-default.yaml#L120 can solve the problem?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080236505
You can attach the pcap file in this issue.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080075694
> > >
> >
> >
> > I will try with APISIX 2.12, but I tried with 2.13, it can not run.
>
> If 2.13 has the same problem, 2.12 also suffers from it. Let me see the packet capture file.
I got the packet capture file, what info do you want to see? it has lots of info.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081360267
What error?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] tokers commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081626284
@zhantanfeng You just configure the IPv6, but missing the port.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1080545256
> I have just read the pcap file. Look like the server queried 114.114.114.114 / 1.1.1.1 / 223.5.5.5 and got "No such name".
>
> Could you provide a successful case's pcap with ping?

It looks like it can parse this domain.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081316239
> <img alt="image" width="1177" src="https://user-images.githubusercontent.com/10428333/160515340-ed3e5dd4-5849-4eba-b897-5058b2854ef9.png">
>
> It seems that the domain name has a duplicated ".svc.cluster.local" suffix.
But it is successful, and I think it maybe has bussiness with the kube-dns svc address, do apisix support ipv6?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhantanfeng commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
zhantanfeng commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081356775
> dns_resolver with "fd11:..."
If I configure this directly, there will be an error. Apifix can't run.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] tokers commented on issue #6700: help request: apisix在解析域名时失败,出现循环
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6700:
URL: https://github.com/apache/apisix/issues/6700#issuecomment-1081313010
<img width="1177" alt="image" src="https://user-images.githubusercontent.com/10428333/160515340-ed3e5dd4-5849-4eba-b897-5058b2854ef9.png">
It seems that the domain name has a duplicated ".svc.cluster.local" suffix.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org