That is, by default, Apache APISIX relies on local dns configuration to
work properly, which brings two problems:
1. Increase the user's operation and maintenance costs.
Users need to make sure that /etc/resolv.conf is set and the settings are
correct before they can use Apache APISIX.
2. If there is a problem with resolving dns, we need the user to provide
/etc/resolv.conf to troubleshoot.

Therefore, I recommend not using /etc/resolv.conf by default unless the
user really understands.

I am not expert of k8s, so please correct me if I am wrong.

Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing


junxu chen <[email protected]> 于2020年3月26日周四 上午10:53写道:

> +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 <[email protected]> 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 <[email protected]> 于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
> > >
> >
>

Reply via email to