186k views
5 votes
Type dig www.example A in order to get the IP address of www.example. What’s the TTL of the A record returned in the response? Wait a while, and repeat the query. Why has the TTL changed?

User Joasa
by
5.9k points

1 Answer

4 votes

Answer:

Your computer now has the IP address of that website cached, and no longer has to lookup the IP address of that domain name. The TTL of the first query is bigger than the TTL of the second query as less time was taken to execute the request.

Step-by-step explanation:

On the first request to the website, the computer needs to contact other machines to find the record of the IP address.

On the second request, the computer already has the IP address and can use that to connect.

User Cradam
by
5.9k points