Supplement · Networking

Resolution là một distributed cache path

Authoritative record đúng chưa đủ; stub, recursive resolver và application cache có thể thấy state khác nhau.

DNS

Resolution path

Stub resolver hỏi recursive resolver; nếu cache miss, resolver đi từ root đến TLD và authoritative server. A/AAAA trả address; CNAME tạo alias chain; NS phân quyền zone; SOA chứa metadata; TXT/SRV phục vụ use case khác.

TTL, negative cache và rollout

TTL là giới hạn cache, không phải thời điểm mọi client đồng loạt cập nhật. NXDOMAIN/NODATA cũng được negative-cache. Hạ TTL phải làm trước migration đủ lâu. Client có thể cache lâu hơn hoặc giữ connection cũ nên DNS cutover không tức thì drain traffic.

Failure modes

SERVFAIL khác NXDOMAIN; timeout có thể do UDP/53 path, EDNS size hoặc resolver overload. Response lớn có thể fallback TCP. Split-horizon tạo answer khác theo resolver/network. DNSSEC xác thực nguồn và tính toàn vẹn, không mã hóa query.

Nguồn chuẩn

← NAT/firewallTLS →