How to determine resolver and resolver_timeout


#1

How to determine resolver and resolver_timeout?


#2

Hi @wizozi,

I think you should write some context to your question :slight_smile:

If you are talking about nginx directives resolver and resolver_timeout:

In resolver directive you put a dns resolver (ip or domain name), it could be your ISP dns resolver, your own resolver or whatever resolver you want to use, if you are unsure you could any of the public dns resolvers like 1.1.1.1 or 9.9.9.9 or 8.8.8.8 or …

resolver 1.1.1.1;

For more info: https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver

In resolver_timeout you set how long nginx will wait for an anwser from the previously defined resolver

resolver_timeout 15s;

For more info: https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver_timeout

Cheers,
sahsanu


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.