System/Linux

linux - dns cache flush

linuxism 2014. 9. 30. 01:42


리눅스에서는 어떻게 dns cache 를 flush 할 수 있을까?
 
 rndc flush 또는 ndc flush

네임서버가 설치되어있지 않고 caching dns 로 nscd 가 설치된 경우라면 아래와 같이 하면 된다.
 /etc/init.d/nscd restart

bind 나 nscd 가 미설치하여 /etc/hosts 나 /etc/resolv.conf 에 네임서버를 지정하여 운용중이라면, network restart 또는 서버를 reboot 해야 dns cache 가 flush 된다.



출처 - http://faq.hostway.co.kr/Linux_DNS/2249