recently I found that a high amount of DNS queries related to my database which was hosted at AWS are sent from my python application. I have fixed it in my separate Java project by overriding java.security file and by changing the networkaddress. cache.ttl parameter to 1hr. I need to apply the same thing to my python application. I am using the requests library. can anyone suggest a way to implement this? Thanks