C.W.K.
Stream
Lesson 09 of 13 · published

dig & nslookup

~12 min · dig, nslookup, dns, record-types

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

DNS query 도구

Track 1 이 DNS 개념 도입. dig 가 실제 query 방법. 가장 흔한 사용 — dig +short hostname — 그냥 IP 줘. 고급 flag 가 specific record type query, 디폴트 resolver 우회, 또는 전체 위임 chain trace 하게 함.

알 가치 있는 record type

Type반환
AIPv4 주소
AAAAIPv6 주소
MX메일 서버
NSAuthoritative nameserver
TXT텍스트 레코드 (SPF, DKIM, 도메인 검증)
CNAMECanonical name alias
PTR역방향 DNS

Code

dig 와 nslookup 레시피·bash
# Standard query
dig github.com

# Short answer only
dig +short github.com

# Specific record type
dig github.com MX
dig github.com NS
dig github.com TXT
dig github.com AAAA

# Use a specific resolver (Cloudflare)
dig @1.1.1.1 +short github.com
dig @8.8.8.8 +short github.com

# Reverse — IP to name
dig -x 140.82.121.3

# Trace the full delegation chain (root → TLD → authoritative)
dig +trace github.com

# Simpler tool, more limited
nslookup github.com
nslookup github.com 1.1.1.1

External links

Exercise

dig +short github.com, dig github.com MX, dig github.com NS, dig +trace github.com 돌려. trace 출력 읽고 식별 — root server → .com TLD → GitHub authoritative nameserver → 최종 답. 한 명령에 전체 DNS 위임 chain — 그 그림 내재화하면 DNS 이슈가 마법 아니게 됨.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.