Hello,
I want to make a request for a domain that does not get cached by Pi-hole because the information is time sensitive.
Now the behavior is that my device requests data, but gets served old data from the cache, in stead of fresh data from the server.
Run from your Pi-hole machine, please share the result of the following command:
dig your.domain.here
where you substitute your.domain.here with your actual time sensitive domain.
Also, please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
Your debug log shows that you have not custom configured your Pi-hole to serve stale DNS records, so Pi-hole sticks with its default behaviour of caching DNS records according to DNS standards.
DNS records come with a TTL, which indicates the maximum time a DNS resolver may cache that record for before issuing a new request.
In your case, that TTL is set to 300 seconds, or five minutes:
;; ANSWER SECTION:
your.domain.here. 300 IN A 34.xxx.xxx.xxx
That would mean that it would take at least those 5 minutes before changes in DNS records could be expected to be reflected in public DNS. Usually, it could even take a bit longer before all public DNS resolvers would have updated their cached records, as retrieving those updated records also takes some time.
No, I do not own the domain.
What you tell me says that all is working as it should, and I just misunderstand the way Pi-hole cache works. It just stores the DNS record, right?
I may have confused it for storing the actual data information, like Squid does?