result: +3 agree I will create a Github issue later
On Fri, Mar 27, 2020 at 10:07 AM Linsir Wu <lin...@apache.org> wrote: > +1 > > I prefer to use the local DNS resolver by default. It's more compatible. > Cases like : > - aliyun inner dns. > - docker network. > > > Lang Wang <totemofw...@apache.org> 于2020年3月27日周五 上午9:36写道: > > > +1 > > > > The local resolver (/etc/resolv.conf) will works more compatible than > > others. > > > > Cases like : > > we use Aliyun & K8s cluster, if we set > > `dns_resolver` to the IPs outside vpc network, some feature will be > broken: > > > > Aliyun DNS `private zone` record cannot be fetch any more; > > > > K8s' inner service record like: `*.*.svc.cluster.local`cannot be reached > > any more; > > > > Fetching Aliyun's resource link url like `*.aliyuncs.com` will cause big > > latency than default. > > > > > > > > 在 2020年3月26日星期四,junxu chen <chenju...@apache.org> 写道: > > > > > +1 > > > > > > I prefer use the local DNS resolver by default. It's more compatible. > > > > > > If someone need to use special DNS resolver, he can set the configure > to > > > use it. > > > > > > > > > > > > On Thu, Mar 26, 2020 at 10:12 AM Ming Wen <wenm...@apache.org> wrote: > > > > > > > I'm not sure. > > > > I checked nginx, OpenResty and Kong, all of them not read the local > > > > configuration by default. > > > > > > > > Thanks, > > > > Ming Wen, Apache APISIX & Apache SkyWalking > > > > Twitter: _WenMing > > > > > > > > > > > > YuanSheng Wang <membp...@apache.org> 于2020年3月26日周四 上午10:00写道: > > > > > > > > > Hi: > > > > > > > > > > I think it is time to use the local DNS resolver by default. This > is > > > > > more suitable for most users, > > > > > especially for k8s users. > > > > > > > > > > ```yaml > > > > > apisix: > > > > > # dns_resolver: # If not set, read from > > > > > `/etc/resolv.conf` > > > > > # - 1.1.1.1 > > > > > # - 8.8.8.8 > > > > > ``` > > > > > > > > > > Here is the default value for DNS resolver now. > > > > > > > > > > ```yaml > > > > > apisix: > > > > > dns_resolver: # If not set, read from > > > > > `/etc/resolv.conf` > > > > > - 114.114.114.114 > > > > > - 223.5.5.5 > > > > > - 1.1.1.1 > > > > > - 8.8.8.8 > > > > > ``` > > > > > > > > > > -- > > > > > MembPhis > > > > > My github: https://github.com/membphis > > > > > Apache APISIX: https://github.com/apache/incubator-apisix > > > > > > > > > > > > > > > -- *MembPhis* My github: https://github.com/membphis Apache APISIX: https://github.com/apache/incubator-apisix