Welcome! Log In Create A New Profile

Advanced

Re: How did nginx resolve names?

Francis Daly
March 10, 2021 09:16AM
On Tue, Mar 09, 2021 at 08:05:02PM -0500, andromeda123 wrote:

Hi there,

> Can you please elaborate why start-up DNS resolution does not use `resolver`
> directive? Just the way run time resolution does?

At a guess -- there does not need to be exactly one resolver directive;
and there is no need to avoid the system resolver at startup because
things are under less time pressure then.

The "resolver" directive takes the address of a DNS server. The system
resolver may or may not use DNS -- applications don't have to care what
it uses, just that it works.

> A follow up question -
> Is it feasible to use system resolver as the run time resolver by explicitly
> adding it to the `resolver` directive?

You can use the same DNS server that the system resolver uses,
yes. (Assuming your system resolver uses a DNS server.) But you won't
be using "the system resolver".

The difference there may not be important.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How did nginx resolve names?

basti March 05, 2021 09:10AM

Re: How did nginx resolve names?

Francis Daly March 07, 2021 06:26AM

Re: How did nginx resolve names?

andromeda123 March 09, 2021 08:05PM

Re: How did nginx resolve names?

Francis Daly March 10, 2021 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready