WEBVTT

1
00:00:00.000 --> 00:00:04.320
Let us understand dns management.
A phone book maps a name

2
00:00:04.320 --> 00:00:07.900
to a number. People who wrote
down yesterday number may keep

3
00:00:07.900 --> 00:00:11.560
using it until they check
again. Changing the book cannot

4
00:00:11.560 --> 00:00:16.140
hang up every current call.
DNS caches and existing network

5
00:00:16.140 --> 00:00:20.480
connections behave similarly.
DNS translates names into

6
00:00:20.480 --> 00:00:24.580
records such as addresses.
Managing DNS includes

7
00:00:24.580 --> 00:00:29.240
authoritative records, TTL,
delegation and safe changes.

8
00:00:29.240 --> 00:00:34.220
It is not an HTTP redirect and
does not instantly move every

9
00:00:34.220 --> 00:00:37.560
existing connection.
Follow the normal path.

10
00:00:38.140 --> 00:00:41.540
The browser or operating
system asks a resolver for the

11
00:00:41.540 --> 00:00:45.780
hostname. Existing local or
resolver caches may already

12
00:00:45.780 --> 00:00:50.040
contain an answer. A resolver
without a usable cached answer

13
00:00:50.040 --> 00:00:53.700
follows DNS resolution to
the authoritative records.

14
00:00:54.500 --> 00:00:57.160
Record type and delegation
must be configured correctly.

15
00:00:57.160 --> 00:01:01.720
SeatSpot changes an application
endpoint or validates a

16
00:01:01.720 --> 00:01:05.900
domain. A safe release must
account for record type, current

17
00:01:05.900 --> 00:01:11.260
TTL, certificate/host configuration
and rollback rather than

18
00:01:11.260 --> 00:01:14.240
assuming Save means every
user changed immediately.

19
00:01:15.360 --> 00:01:18.800
Now change one condition. A
client may connect to the old

20
00:01:18.800 --> 00:01:21.000
endpoint while its answer is still valid.

21
00:01:21.600 --> 00:01:24.420
Changing the authoritative
record does not instantly erase

22
00:01:24.420 --> 00:01:29.260
that cached answer. A common
misunderstanding is this: DNS

23
00:01:29.260 --> 00:01:34.760
is an HTTP redirect. DNS
provides records before the HTTP

24
00:01:34.760 --> 00:01:38.960
connection; a redirect
is a later HTTP response.

25
00:01:39.400 --> 00:01:43.060
Think about this. A resolver
cached a one-hour answer ten

26
00:01:43.060 --> 00:01:47.080
minutes ago. Does lowering
TTL now erase its cache?

27
00:01:47.440 --> 00:01:49.280
Pause the video and make your prediction.

28
00:01:49.980 --> 00:01:53.760
No. That cached answer can
remain until its old expiry.

29
00:01:53.760 --> 00:01:57.760
The shorter TTL applies
to answers fetched later.

30
00:01:58.680 --> 00:02:00.840
Let us reason with a concrete example.

31
00:02:01.380 --> 00:02:07.580
A record was cached at 10:00
with a 3,600 second TTL.

32
00:02:07.580 --> 00:02:12.340
You lower TTL at 10:10. That
existing cache may retain the

33
00:02:12.340 --> 00:02:17.480
old answer until about 11:00.
The new shorter TTL affects

34
00:02:17.480 --> 00:02:20.460
later fetched answers,
not already cached copies.

35
00:02:20.460 --> 00:02:24.420
Reduce TTL in advance when
appropriate, prepare both

36
00:02:24.420 --> 00:02:26.620
endpoints and monitor the transition.

37
00:02:27.300 --> 00:02:31.120
Keep domain ownership, DNS
and hosting configuration

38
00:02:31.120 --> 00:02:34.620
separate in your explanation.
These figures are teaching

39
00:02:34.620 --> 00:02:36.820
examples, not production guarantees.

40
00:02:37.900 --> 00:02:40.040
Turn the idea into a design decision.

41
00:02:40.860 --> 00:02:42.820
Later lookups can obtain
the new destination.

42
00:02:43.700 --> 00:02:47.680
Clients and resolvers change
at different times, so old and

43
00:02:47.680 --> 00:02:49.960
new endpoints may both receive traffic.

44
00:02:49.960 --> 00:02:53.820
The new address also needs
the correct certificate, host

45
00:02:53.820 --> 00:02:57.880
routing and healthy application.
Successful resolution alone

46
00:02:57.880 --> 00:03:01.220
does not prove the website
works. When you try the practice

47
00:03:01.220 --> 00:03:05.540
task, look for this result. The
old cached answer can remain

48
00:03:05.540 --> 00:03:10.300
until about 11:00; existing
connections are a separate

49
00:03:10.300 --> 00:03:14.840
issue. Check your understanding.
Keep a rollback path and an

50
00:03:14.840 --> 00:03:18.740
appropriate overlap interval.
Lower TTL in advance when

51
00:03:18.740 --> 00:03:23.120
useful; do not expect a last-second
TTL edit to end existing

52
00:03:23.120 --> 00:03:27.200
connections. Here is a
challenge. Why do two users reach

53
00:03:27.200 --> 00:03:29.620
different servers after a DNS update?

54
00:03:29.620 --> 00:03:33.400
Pause before the answer.
Resolvers fetched answers at

55
00:03:33.400 --> 00:03:36.940
different times and may
retain previous TTLs.

56
00:03:37.080 --> 00:03:39.380
Clients may also reuse
existing connections.

57
00:03:40.140 --> 00:03:43.160
Inspect records and actual
request routing before concluding

58
00:03:43.160 --> 00:03:46.000
the update failed. For
an interview, discuss

59
00:03:46.000 --> 00:03:51.780
A/AAAA/CNAME/TXT,
delegation and TTL planning.

60
00:03:52.340 --> 00:03:54.840
Say what you would measure,
not only which tool you would

61
00:03:54.840 --> 00:03:55.140
buy.
