DNS resolution

DNS 이름 해석

A lookup turns a domain name into an IP address the client can connect to.

···
html
<div class="n-demo"><div class="n-head"><strong>DNS LOOKUP</strong><span>LIVE TRACE</span></div><div class="n-stage"><div class="n-box" id="d0">app.test</div><span>→</span><div class="n-box" id="d1">resolver</div><span>→</span><div class="n-box" id="d2">authority</div><span>→</span><div class="n-box mono" id="d3">203.0.113.7</div></div><div class="n-foot">tap to step · auto replay</div></div>
css
.n-demo{width:min(94vw,760px);height:min(88vh,324px);padding:clamp(9px,2.2vmin,18px);border:1px solid var(--line);border-radius:13px;background:var(--surface);display:flex;flex-direction:column;gap:clamp(5px,1.3vmin,10px);font:600 clamp(12px,2.4vmin,16px)/1.3 "Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;overflow:hidden}.n-head,.n-foot{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.n-head strong{color:var(--accent)}.n-head span,.n-foot{font-size:12px}.n-stage{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(4px,1vmin,10px)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.n-box{padding:clamp(5px,1.5vmin,11px);border:1px solid var(--line);border-radius:8px;background:var(--bg);text-align:center}.n-on{border-color:var(--accent)!important;color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important}.n-muted{color:var(--muted)}@media(max-width:400px){.n-head span{display:none}}.n-stage{flex-wrap:wrap}.n-box{min-width:19%}
js
let step=0;function advance(){for(let i=0;i<4;i++)document.getElementById('d'+i).classList.toggle('n-on',i===step);step=(step+1)%4}
const clickTarget=document.querySelector('.n-demo');if(clickTarget&&typeof advance==='function'){advance();const timer=setInterval(advance,1050);clickTarget.addEventListener('pointerdown',()=>{clearInterval(timer);advance()})}

A browser asks a DNS resolver for the address behind a name. On a cache miss, the resolver follows DNS delegation to an authoritative server and caches the answer for its lifetime.

The demo moves the lookup from name to resolver to authoritative server, then returns an address. A warm cache avoids repeating the full lookup.

When to use

Trace the lookup path and TTL when diagnosing domain failures, DNS changes, or first connection latency.

Open as page ↗