Windows 의 DNS Client 서비스는 조회 결과를 리졸버 캐시에 담아 두고 TTL 동안 재사용한다. 서버 IP 를 바꿨는데 옛 주소로 붙거나, 존재하지 않는다는 부정 응답(negative cache)이 남아 이름이 안 풀릴 때 캐시를 비운다[1]. 관리자 권한이 필요하다.
명령 프롬프트나 PowerShell 을 관리자로 열고 실행한다.
ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
PowerShell 전용 명령도 같은 일을 한다.
Clear-DnsClientCache
ipconfig /displaydns
Get-DnsClientCache | Where-Object Entry -like "*example*"
hosts 파일 항목도 캐시에 함께 보인다.
| 명령 | 용도 |
|---|---|
ipconfig /registerdns |
이 컴퓨터의 이름 · IP 를 DNS 서버에 다시 동적 등록 |
ipconfig /release · /renew |
DHCP 주소를 반납하고 다시 받는다 |
Resolve-DnsName example.com |
캐시를 거치지 않고 서버에 직접 조회 (-DnsOnly) |
캐시를 비워도 안 풀리면 DNS 서버 쪽 문제다. nslookup example.com <서버IP> 로 서버를 지정해 조회해 본다. 브라우저는 자체 캐시가 따로 있어 크롬은 chrome://net-internals/#dns 에서 비운다.
macOS 는 sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, systemd-resolved 를 쓰는 Ubuntu 는 sudo resolvectl flush-caches 다. DNS 캐시 비우기 에 운영체제별로 모아 두었다.
ipconfig /flushdns · /displaydns · /registerdns — 2026-09-20 확인. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig ↩︎