dns本机缓存
1. 娓呴櫎dns缂揿瓨锻戒护琛屾柟娉
1棣栧厛锛屽湪鐢佃剳妗岄溃锛屽彸鍑烩滃紑濮嬧濆浘镙囷纴镣瑰嚮钬滆繍琛屸2涔熷彲鐩存帴鎸変笅蹇鎹烽敭钬淲in+R钬濋敭锛屾墦寮杩愯岀獥鍙3鍦ㄨ繍琛岀獥鍙g殑杈揿叆妗嗕腑锛岃緭鍏モ淐md钬濓纴镣瑰嚮钬灭‘瀹气4寮瑰嚭鏂扮獥鍙o纴鍦ㄥ懡浠ゆ嗕腑杈揿叆钬渋pconfigflushdns钬濄
1Windows + R阌锛屾墦寮杩愯屾搷浣沧嗭纴铹跺悗鍦ㄦ墦寮钖庨溃杈揿叆 cmd 锛2娓呯┖DNS缂揿瓨锻戒护涓篿pconfigflushdns锛屽彧瑕佸湪濡备笅锲炬墍绀虹殑锻戒护妗嗕腑杈揿叆姝ゅ懡浠わ纴濡备笅锲3杈揿叆瀹屼简锻戒护涔嫔悗锛屾寜涓嬬数鑴戦敭鐩树笂镄勫洖杞﹂敭Enter鍗冲彲寮銆
鍦╓indows绯荤粺镄刢md镄勭獥鍙d腑杈揿叆 ipconfigflushdns 鎸夊洖杞﹂敭纭璁ゅ嵆鍙鍒锋柊娓呴櫎链鍦瘅NS缂揿瓨鍏蜂綋镎崭綔璇峰弬镦т互涓嬫ラ1鍦ㄩ敭鐩树笂鎸変綇 win+r 蹇鎹烽敭锛屽埄鐢ㄥ揩鎹烽敭镓揿紑杩愯岀獥鍙2鍦ㄨ繍琛岀獥鍙d腑镄勬墦寮镙忎腑杈揿叆cmd锛岀劧钖庛
鏂规硶姝ラ1链夋椂鍊欐垜浠涓婄绣锛屽彲鑳戒细纰板埌濡备笅𨱍呭喌灏辨槸缃戦〉鎻愮ず镞犳硶杩涘叆锛岃佹眰娓呴櫎DNS缂揿瓨鍐嶈瘯2Win+R蹇鎹烽敭璋冨嚭钬滆繍琛屸濋夋嗭纴杈揿叆CMD锛屽彲浠ユ墦寮锻戒护鎻愮ず绗︽搷浣沧3娓呯┖DNS缂揿瓨锻戒护涓篿pconfigflushdns锛屾垜浠澶嶅埗銆
娓呯悊DNS缂揿瓨\x0d\x0a1鎸墂in+R阌鎴栬呯偣鍑诲紑濮嬶纴镣瑰嚮杩愯\x0d\x0a2鍦ㄨ繍琛岀獥鍙d腑杈揿叆cmd锛岀劧钖庣‘瀹氭垨锲炶溅\x0d\x0a3鍦ㄦ墦寮镄勭獥鍙d腑杈揿叆ipconfigflushdns鎸夊洖杞﹂敭锛屾ゆ椂鏄剧ず钬滃凡鎴愬姛鍒锋柊DNS瑙f瀽缂揿瓨钬濄
鏂规硶姝ラ 1镓揿紑杩愯屾搷浣沧嗭纴杈揿叆 钬渃md钬 2镣瑰嚮钬灭‘瀹气濓纴镓揿紑cmd锻戒护镎崭綔妗3鍦╟md锻戒护镎崭綔妗嗛噷锛岃緭鍏ユ竻绌篸ns缂揿瓨锻戒护钬渋pconfigflushdns钬4杈揿叆瀹屾垚钖庯纴鎸塃nter阌鍑虹幇钬滃凡鎴愬姛鍒锋柊DNS瑙f瀽缂揿瓨钬濄
1璋冨嚭cmd锻戒护瀵硅瘽妗嗭纴镣瑰嚮寮濮嫔湪涓嬮溃鎼灭储妗呜緭鍏cmd锲炶溅 鍙︿竴涓鏂规硶鏄浣跨敤缁勫悎蹇鎹烽敭Windows + R阌锛屾墦寮杩愯屾搷浣沧嗭纴铹跺悗鍦ㄦ墦寮钖庨溃杈揿叆 cmd 锛屽畬鎴愬悗锛岀偣鍑诲簳閮ㄧ殑纭瀹氩嵆鍙镓揿紑CMD锻戒护镎崭綔妗嗕简 2娓呯┖DNS缂揿瓨锻戒护涓篿p銆
寮哄埗娓呴櫎dns缂揿瓨镄#39鏂规硶 1鍒╃敤蹇鎹烽敭镓揿紑杩愯岀獥鍙o纴鎸変綇Win+R鎴栬呯偣鍑诲紑濮嬭彍鍗曪纴鍐岖偣鍑昏繍琛岋纴鍑虹幇濡备笅绐楀彛2鍦ㄦ墦寮镄勯粦绐楀彛涓杈揿叆ipconfigflushdns鎸夊洖杞3姝ゆ椂宸茬粡鎴愬姛娓呴櫎dns缂揿瓨浜4链夋椂杩欑嶆柟娉曚笉銆
鐢ㄥ懡浠ゆ潵娓呴櫎DNS缂揿瓨涓镄勪俊鎭鏂规硶 1浣跨敤缁勫悎蹇鎹烽敭Windows + R阌锛屾墦寮杩愯屾搷浣沧嗭纴铹跺悗鍦ㄦ墦寮钖庨溃杈揿叆 cmd 锛屽畬鎴愬悗锛岀偣鍑诲簳閮ㄧ殑纭瀹氩嵆鍙镓揿紑CMD锻戒护镎崭綔妗嗕简2鍦╟md锻戒护镎崭綔妗嗛噷锛岃緭鍏ユ竻绌篸ns缂揿瓨锻戒护钬渋pconfig銆
镓揿紑CMD锻戒护妗嗙殑鏂规硶 2濡备笂锲撅纴瀹屾垚姝ラ1鍜2涔嫔悗锛屾垜浠鍗冲彲杩涘叆鍒板备笅镄凛MD锻戒护镎崭綔瀵硅瘽妗嗭纴濡备笅锲综MD锻戒护镎崭綔妗 3娓呯┖DNS缂揿瓨锻戒护涓篿pconfigflushdns锛屾垜浠鍙瑕佸湪濡备笅锲炬墍绀虹殑锻戒护妗嗕腑杈揿叆姝ゅ懡浠わ纴濡备笅锲惧备綍銆
1Windows + R阌锛屾墦寮杩愯屾搷浣沧嗭纴铹跺悗鍦ㄦ墦寮钖庨溃杈揿叆 cmd 锛屽畬鎴愬悗锛岀偣鍑诲簳閮ㄧ殑纭瀹氩嵆鍙镓揿紑CMD锻戒护镎崭綔妗嗕简锛2娓呯┖DNS缂揿瓨锻戒护涓篿pconfigflushdns锛4杈揿叆瀹屼简锻戒护涔嫔悗锛屾寜涓嬬数鑴戦敭鐩树笂镄勫洖杞﹂敭Enter鍗冲彲銆
鐢佃剳娓呮欴NS缂揿瓨鏂规硶濡备笅win+r蹇鎹烽敭璋冨嚭钬滆繍琛屸濋夋嗭纴杈揿叆CMD锛屽彲浠ユ墦寮锻戒护鎻愮ず绗︽搷浣沧嗘竻绌箧NS缂揿瓨锻戒护涓篿pconfigflushdns锛屽嶅埗杩欎釜锻戒护锛屽湪镎崭綔妗嗕腑鍙抽敭阃夋嫨绮樿创涓嶈佺敤蹇鎹烽敭锛屽懡浠ゆ彁绀虹︿细榛樿よ緭鍏ヨ嫳鏂囧瓧姣嶃
鍏堟墦寮钬滆繍琛屸滳trl+R98me杈揿叆command 2kxp2003杈揿叆cmd 铹跺悗灏辨槸涓嬮溃镄勫懡浠98me ipconfig release_all ipconfig renew_all 2kxp2003 ipconfig release ipconfig renew銆
濡备綍娓呯悊dns缂揿瓨锻涓嬮溃鎴戞潵鏁椤ぇ瀹01 棣栧厛锛屾垜浠镓揿紑鎴戜滑镄勭数鑴戯纴铹跺悗鎴戜滑鍙冲嚮鐢佃剳妗岄溃宸︿笅瑙掔殑寮濮嬫寜阍02銆
鍒锋柊DNS缂揿瓨涔嫔悗锛屽啀杩愯宨pconfig displaydns镆ョ湅缂揿瓨锻戒护锛屼箣钖庡氨鍙浠ョ湅鍒扳沧棤娉曟樉绀箧NS缂揿瓨瑙f瀽钬濈殑鎻愮ず锛岃呖姝ゆ垜浠灏卞畬鎴愪简DNS缂揿瓨镄勬竻闄や简 绗浜岀嶆渶钖庡埛鏂瘅NS鏂规硶锛岃繘鍏ョ数鑴戣惧囩$悊鍣锛岀劧钖庣佺敤缃戝崱锛屼箣钖庡啀钖鐢ㄥ氨鍙浠ヤ简銆
铹跺悗镓嶅皢瀵瑰簲镄勭绣绔椤唴瀹硅繑锲炵粰鐢ㄦ埛涓鑸𨱍呭喌涓嬶纴鎴戜滑镄勭数鑴戞槸涓嶉渶瑕佹坠锷ㄥ幓娓呯悊DNS缂揿瓨镄勶纴涓嶈繃链変簺镞跺欙纴镆愪簺缃戠珯锲犲烟钖岲NS链嶅姟鍣ㄥ湴鍧鍙樻洿锛岃屾垜浠镄勭数鑴戣缮锅灭暀鍦ㄥ巻鍙茶块梾镄凞NS缂揿瓨涓婏纴杩欐牱灏变细鍑虹幇璁块梾缃戠珯瑙f瀽鍑洪敊锛岄渶瑕佹坠锷ㄥ幓銆
鍦ㄦ带鍒堕溃𨱒跨$悊宸ュ叿链嶅姟涓鎶奃NS Client鍜娈HCP client涓や釜链嶅姟缁勪欢钖锷锛岃屼笖璁剧疆鎴愯嚜锷ㄥ啀杩涜屾竻闄ょ紦瀛樼偣鍑烩滃紑濮嬧濓紞钬滆繍琛屸濓紞杈揿叆cmd骞剁偣鍑烩灭‘瀹气濓纴鍦ㄥ懡浠ゆ彁绀虹︾獥鍙d腑阌鍏ipconfig flushdns灏卞ソ浜嗐
2. dns缂揿瓨鏄浠涔
DNS缂揿瓨鏄鎸喽NS链嶅姟鍣ㄥ湪瑙f瀽锘熷悕镞讹纴灏嗘渶杩戞煡璇㈢殑锘熷悕鍜屽叾瀵瑰簲镄処P鍦板潃瀛桦偍鍦ㄦ湰鍦扮紦瀛树腑銆傚綋鍐嶆℃煡璇㈢浉钖岀殑锘熷悕镞讹纴DNS链嶅姟鍣ㄥ彲浠ョ洿鎺ヤ粠缂揿瓨涓銮峰彇锘熷悕瀵瑰簲镄処P鍦板潃锛岃屼笉蹇呴吨鏂版煡璇DNS镙规湇锷″櫒鍜岄《绾у烟钖嶆湇锷″櫒锛屼粠钥屽姞蹇獶NS瑙f瀽阃熷害銆
DNS缂揿瓨阃氩父瀛桦湪浜庤$畻链虹殑镎崭綔绯荤粺銆佹祻瑙埚櫒銆佽矾鐢卞櫒绛夌绣缁滆惧囦腑锛屼互鍙奍SP锛堜簰镵旂绣链嶅姟鎻愪緵鍟嗭级鍜屼紒涓氱瓑缁勭粐镄凞NS链嶅姟鍣ㄤ腑銆傜紦瀛樻椂闂村彲浠ユ牴鎹瓺NS链嶅姟鍣ㄧ殑璁剧疆钥屽纾锛屼竴鑸𨱒ヨ达纴缂揿瓨镞堕棿鍙浠ヨ剧疆涓哄嚑鍒嗛挓銆佸嚑涓灏忔椂鐢氲呖鍑犲ぉ銆
DNS缂揿瓨镄勪綔鐢ㄦ槸鍑忓皯缃戠粶娴侀噺锛屾彁楂樼绣缁滆块梾阃熷害锛屽悓镞朵篃鍙浠ユ彁楂楧NS链嶅姟鍣ㄧ殑璐熻浇鑳藉姏鍜岀ǔ瀹氭с备絾鏄锛岀敱浜庣紦瀛樻椂闂磋缉闀匡纴链夋椂鍊椤彲鑳戒细鍑虹幇缂揿瓨姹℃煋鍜娈NS锷鎸佺瓑闂棰桡纴锲犳ら渶瑕佸畾链熸竻鐞咲NS缂揿瓨鎴栬呭湪阆囧埌闂棰樻椂镓嫔姩鍒锋柊DNS缂揿瓨銆
鍒锋柊DNS缂揿瓨镄勫叿浣撴柟娉曞彇鍐充簬鎭ㄤ娇鐢ㄧ殑镎崭綔绯荤粺鍜岃惧囩被鍨嬨备笅闱㈡槸涓浜涘父瑙佽惧囩殑鍒锋柊DNS缂揿瓨镄勬柟娉曪细
鍦╓indows镎崭綔绯荤粺涓锛
1銆佹墦寮锻戒护鎻愮ず绗︺傛柟娉曟槸鍦╓indows鎼灭储镙忎腑阌鍏モ渃md钬濆苟镓揿紑锻戒护鎻愮ず绗︺
2銆佽緭鍏ュ懡浠も渋pconfig /flushdns钬濄
3銆佹寜涓嫔洖杞﹂敭锛岀瓑寰呭懡浠ゆ彁绀虹︾殑鎻愮ず淇℃伅锛岃〃绀箧NS缂揿瓨宸叉垚锷熷埛鏂般
鍦╩acOS镎崭綔绯荤粺涓锛
1銆佹墦寮缁堢搴旂敤绋嫔簭銆
2銆佽緭鍏ュ懡浠も渟udo killall -HUP mDNSResponder钬濄
3銆佹寜涓嫔洖杞﹂敭锛岀瓑寰呯粓绔镄勬彁绀轰俊鎭锛岃〃绀箧NS缂揿瓨宸叉垚锷熷埛鏂般
鍦↙inux镎崭綔绯荤粺涓锛
1銆佹墦寮缁堢銆
2銆佽緭鍏ュ懡浠も渟udo /etc/init.d/nscd restart钬濄
3銆佹寜涓嫔洖杞﹂敭锛岀瓑寰呯粓绔镄勬彁绀轰俊鎭锛岃〃绀箧NS缂揿瓨宸叉垚锷熷埛鏂般
鍦ㄨ矾鐢卞櫒涓锛
1銆佹墦寮璺鐢卞櫒绠$悊鐣岄溃銆
2銆佹垒鍒扳淒NS钬濇垨钬淒HCP钬濊剧疆銆
3銆佺偣鍑烩沧竻闄DNS缂揿瓨钬濇垨钬滃埛鏂瘅NS缂揿瓨钬濈瓑鎸夐挳銆
4銆佷缭瀛桦苟閲嶅惎璺鐢卞櫒銆
璇锋敞镒忥纴鍒锋柊DNS缂揿瓨鍙鑳戒细瀵艰嚧缃戠粶杩炴帴涓鏂鎴栧簲鐢ㄧ▼搴忔棤娉曡块梾缃戠粶锛屽洜姝ゅ湪杩涜屾搷浣沧椂搴旇ヨ皑鎱庛傚傛灉鎭ㄤ笉纭瀹氩备綍鍒锋柊DNS缂揿瓨鎴栭亣鍒伴梾棰桡纴璇峰捝璇㈡妧链鏀鎸佷汉锻樼殑甯锷┿