How do I disable DNS Caching and DNS Reverse Lookup in Nginx ?

Maxim Dounin mdounin at mdounin.ru
Mon Dec 30 23:15:45 UTC 2013


Hello!

On Sun, Dec 29, 2013 at 01:08:18PM -0500, linuxr00lz2013 wrote:

[...]

> When I run the nginx service and I test the FQDN on an ipv6 enabled
> computer, I am able to access the IPV4 website www.yourcoolsite.com. But
> when I change the proxy_pass FQDN to a different IPV4 website in the config
> file and reload the service, ipv6.mycoolsite.com still connects to
> www.yourcoolsite.com and not to the new IPV4 FQDN. I think its loading a
> cached copy of www.yourcoolsite.com instead of loading the new IPV4 FQDN.
> When it finallly does load the new site, it does so REALLY slowly. I think
> this is due to reverse DNS lookup occuring!
> 
> Now what I am trying to figure out here is what is causing the caching to
> occur and the slow loading times? How do I go about disabling DNS caching as
> well as the reverse DNS lookup? I want to be able to connect the IPV4
> website specified in the default.conf file when ever I change the file and
> reload the service. I dont want to connect to a cached copy of the previous
> IPV4 entry ! 
> 
> any help will be greatly appreciated!!

Most likely, what you are seeing is your browser's caching.  Try 
cleaning your browser's cache.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list