changed hardcoded value for DNS cache (5secs) to Constants (2secs)