-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feature: supported to use host name in upstream #522
Conversation
@@ -29,6 +29,10 @@ apisix: | |||
# udp: # UDP proxy port list | |||
# - 9200 | |||
# - 9211 | |||
dns_resolver: # use 114.114.114.114 as default DNS resolver, disable IPv6 and enable local DNS. | |||
- 114.114.114.114 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
114.114.114.114
is only friendly for Chinese. I think 8.8.8.8
or 1.1.1.1
is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the international lover feel that it is wrong, we modify it better.
@@ -38,7 +38,7 @@ http { | |||
|
|||
lua_socket_log_errors off; | |||
|
|||
resolver ipv6=off local=on; | |||
resolver 114.114.114.114 ipv6=off local=on; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
local host, port = core.utils.parse_addr(addr) | ||
if not ipmatcher.parse_ipv4(host) and | ||
not ipmatcher.parse_ipv6(host) then | ||
local ip_info = core.utils.dns_parse(dns_resolver, host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not drop the error msg of dns_parse
. if the domain is invalid or timeout, what's the result? we should add test cases for that.
@membphis please take a look comments. |
you'd better create new issue if you leave new message when we merged some PR already. |
no, I commented before merged.
YuanSheng Wang <notifications@github.com> 于2019年9月23日周一 下午8:54写道:
… @membphis <https://github.com/membphis> please take a look comments.
you'd better create new issue if you leave new message when we merged some
PR already.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#522>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJZBK4V553CABF25FBU6WDQLC4BTANCNFSM4IW6EZIQ>
.
|
will fix: #21