DNS query
by joemon83 from LinuxQuestions.org on (#4WMA2)
I am just trying to understand caching/TTL for dns records in rhel 8.
when I do dig on google.com for example, it fetches the the A record and the TTL is 60 seconds. And then every time I do dig I see this is being decremented every second till it becomes 0. Does this mean the record is cached for 60 seconds ? I don't think so because when I do tcpdump and I see the DNS query sent out for every single dig. I am trying to understand the decrementing TTL counter on the local machine and then at the same time every dig resulting in local resolver sending out dns query..


when I do dig on google.com for example, it fetches the the A record and the TTL is 60 seconds. And then every time I do dig I see this is being decremented every second till it becomes 0. Does this mean the record is cached for 60 seconds ? I don't think so because when I do tcpdump and I see the DNS query sent out for every single dig. I am trying to understand the decrementing TTL counter on the local machine and then at the same time every dig resulting in local resolver sending out dns query..