DNS 질의할때
글쓴이: declspec / 작성시간: 금, 2012/05/18 - 10:02오후
없는 도메인이름에 대해서 DNS 질의를 하면
보통은 없는 도메인을 찾느라 엄청 오래 걸리겠죠?
그런데 어떨땐 DNS 요청시 엄청 빠르게 페이지를 찾을수없다는 응답이 오는것을
볼 수 있는데, 이건 어째서 이렇게 되는걸까요?
로컬 DNS 서버에 도메인매핑이 없다는 사실이 캐싱되는걸까요?
그것도 아닐거같은게, www.afinfaiewufnaiufvgnalierufnalsiufj.com 이런식으로
완전 랜덤으로 입력을해도 곧바로 없다고 응답이 올때가 있는데, 이런게 캐슁되어있을거같지는 않은데...
Forums:
Negative Caching
DNS에서 사용하는 cache는 positive cache와 negative cache로 나누어져 있습니다.
일반적으로 응답값이 있는 cache는 positive cache에 해당이 되며, 질의하신것과 같이 NXDOMAIN은 negative cache를 하게 됩니다.
많이 사용하는 BIND에서는 negative cache가 기본값으로 3시간으로 설정이 되어 있습니다.
아래는 BIND에서 negative cache를 설정에 대한 메뉴얼의 일부입니다. 참고해주세요.
max-ncache-ttl
To reduce network traffic and increase performance, the server stores negative answers. max-ncache-ttl is used to set a maximum retention time for these answers in the server in seconds. The default max-ncache-ttl is 10800 seconds (3 hours). max-ncache-ttl cannot exceed 7 days and will be silently truncated to 7 days if set to a greater value.
댓글 달기