I have a DNS server, where I put A record with TTL set to 0:
example.host.com <some.ip.addr.one>
Then I do
dig example.host.com
And get specified ip address. Later I change update record
example.host.com <some.ip.addr.two>
and perform dig again
However, resolved ip is still <some.ip.addr.one>
While referring to DNS server management UI I see that record has changed, however it is still resolved to old one.
What can cache DNS? I have a dnsmasq service, however it has cache-size set to 0.
Is there any way to detect how DNS record resolved and what causes this behavior? Any ideas? Thanks in advance.
digalways specify which nameserver you are querying when doing troubleshooting otherwise you may see results not coming from where you think they should. And BTW, 0 for TTL is almost never a good idea, and many caching server will just override that with some small value instead.