일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- Book
- 자바
- oracle
- Tomcat
- 기타소득
- error
- 회계
- 도서
- 마이플랫폼
- 태그를 입력해 주세요.
- 오류
- 에러
- java
- 데이터베이스
- Excel
- 튜닝
- 성능
- 엑셀
- DB
- miplatform
- 이클립스
- 한글
- MIP
- JavaScript
- 오라클
- JEUS
- 톰캣
- Eclipse
- Report Designer
- 함수
Archives
- Today
- Total
어느 가을날의 전환점
DNS|How do I Flush DNS? (DNS 캐시 초기화 방법) 본문
Most DNS clients cache the results of name resolution requests. This speeds up name resolution if multiple lookups are done to the same address, such as is common when browsing the web.
Sometimes a bad DNS entry will be cached and you will need to either flush the DNS cache to get rid of it, or wait up to 24 hours for it to be dropped from the cache automatically.
How to Flush DNS in Microsoft Windows
In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache:
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
You can also use the command ipconfig /displaydns to view the DNS resolver cache.
Turning off DNS Caching under Microsoft Windows
If you experience frequent issues with DNS caching under Microsoft Windows, you can disable client-side DNS caching with either of these two commands:
- net stop dnscache
- sc servername stop dnscache
This will disable DNS caching until the next reboot. To make the change permanent, use the Service Controller tool or the Services tool to set the DNS Client service startup type to Disabled.
Tuning DNS Caching under Microsoft Windows
You can modify the behavior of the Microsoft Windows DNS caching algorithm by setting two registry entries in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters registry key.
The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.
MaxNegativeCacheTtl represents the maximim time that the results of a failed DNS lookup will be cached. The default value is 900 seconds. If you set this value to 0, failed DNS lookups will not be cached.
How to Flush DNS in Mac OSX
In Mac OSX Leopard, you can use the command dscacheutil -flushcache to flush the DNS resolver cache:
bash-2.05a$ dscacheutil -flushcache
In Mac OSX versions 10.5.1 and before, the command lookupd -flushcache performed the same task:
bash-2.05a$ lookupd -flushcache
How to Flush DNS in Linux
In Linux, the nscd daemon manages the DNS cache.
To flush the DNS cache, restart the nscd daemon.
To restart the nscd daemon, use the command `/etc/init.d/nscd restart`.
Reference
'Network' 카테고리의 다른 글
WINDOW|DNS 및 네트워크 관련 명령어(ipconfig, nslookup, netstat) (0) | 2015.12.02 |
---|---|
WIFI|노트북 무선 네트워크 기능을 이용해서 Wi-Fi Hotspot 만들기 (0) | 2012.11.22 |
NETWORK|사설 IP 주소(Private IP Address) (0) | 2012.02.27 |
보안|SSL(Secure Socket Layer) - https (0) | 2010.11.20 |
Tool: System Management Tools (0) | 2009.11.18 |
Comments