<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>From Manual:</p>
<p style="text-align: justify; color: rgb(0, 0, 0); font-family:
sans-serif; font-size: medium; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
22.4px; orphans: auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">By default, nginx caches answers using the TTL value of a
response. An optional<span class="Apple-converted-space"> </span><code>valid</code><span
class="Apple-converted-space"> </span>parameter allows
overriding it:</p>
<blockquote class="example" style="margin: 1em 0px 1em 1em; padding:
0.5em; line-height: 1em; border-left-width: 1px;
border-left-style: solid; border-left-color: rgb(187, 187, 187);
color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; orphans: auto; text-align: left;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<pre style="padding: 0px; margin: 0px;">resolver 127.0.0.1 [::1]:5353 valid=30s;
</pre>
</blockquote>
<blockquote class="note" style="margin: 1em 0px 1em 1em; padding:
0.5em; border: 1px dotted rgb(153, 153, 153); line-height: 1.2em;
text-align: justify; color: rgb(0, 0, 0); font-family: sans-serif;
font-size: medium; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; orphans: auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">Before version 1.1.9,
tuning of caching time was not possible, and nginx always cached
answers for the duration of 5 minutes.</blockquote>
<pre class="moz-signature" cols="72">Best regards,
Vintila Mihai Alexandru</pre>
<div class="moz-cite-prefix">On 5/12/2016 12:36 PM, RT.Nat wrote:<br>
</div>
<blockquote
cite="mid:7676d5ac029d766e6bf418bf74ad3f3f.NginxMailingListEnglish@forum.nginx.org"
type="cite">
<pre wrap="">Troubled up in DNS caching of the IP address for a given DNS name.
Adding the solution given below does not solve the problem of DNS caching in
NGINX.
resolver 8.8.8.8;
set $upstream_endpoint <a class="moz-txt-link-freetext" href="https://example.net:8080">https://example.net:8080</a>;
location / {
proxy_pass $upstream_endpoint;
}
Is there any solutions?
Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="https://forum.nginx.org/read.php?2,266857,266857#msg-266857">https://forum.nginx.org/read.php?2,266857,266857#msg-266857</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<br>
</body>
</html>