How to stop Lucee caching DNS for CFHTTP requests


#1

Hi, I’m running into an issue with CFHTTP ‘remembering’ old DNS settings

e.g.

errordetail
string

Unknown host: Connect to domain.com:443 [domain.com/nnn.nnn.nnn.nnn] failed: Connection timed out: connect

where the ip referred to in nnn.nnn.nnn.nnn is the old ip for domain.com, not the new one that was recently changed (about 6 hours or so ago) in the DNS A record

I’ve tried restarting Lucee a couple of times but I get the same error

Any advice gratefully received

Cheers
Dom


#2

Java has it’s own caching. You can change “networkaddress.cache.ttl” in the java.security file.