I have configured an Apache httpd-2.4.59-2 as a reverse proxy in an Amazon Linux 2023 EC2 server. I am running my own DNS server in the VPC and I have set all instances (VM) to use that server. All httpd conf is a its default values and the proxy worker is per bellow :
ProxyPass "/alfaregavgav" "http://instance-id.eu-south-2.compute.internal" addressttl=240
The bind9 configuration at the DNS server has the TTL set at 604800 but whenever I make a change to the backend’s address (the private IP of the instance-id) the proxy server updates its record directly (seems that it sends a new query every single time) so it’s not caching anything as it was supposed to do. In the beginning I thought that it was due to the fact that there was no DNS caching at the OS level, thus I installed the nscd but the behaviour didn’t change.
Have spent almost three days trying to tshoot that 🙂 All ideas welcome.
In the beginning I thought that it was due to the fact that there was no DNS caching at the OS level, thus I installed the nscd but the behaviour didn’t change. Also tried to explicitly set enablereuse=On
.
Bazoo BCN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.