Yuav Paub
- Type Terminal rau hauv Spotlight, lossis mus rau Go > Utilities > Terminal.
- Nyob rau hauv lub qhov rais Terminal, nkag mus rau cov lus txib: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Kab lus no piav qhia yuav ua li cas yaug DNS cache ntawm Mac.
Kuv Yuav Rov Kho Kuv DNS ntawm Mac li cas?
Yog tias koj tab tom ntsib teeb meem kev sib txuas, koj tuaj yeem kho lawv los ntawm kev rov pib dua cov ntaub ntawv hauv zos ntawm lub npe server (DNS) cov ntaub ntawv khaws cia hauv koj lub Mac. Cov ntaub ntawv no yuav dhau los lossis tsis raug, tiv thaiv cov vev xaib los ntawm kev thauj khoom thiab ua rau koj qhov kev sib txuas qeeb. Txhawm rau rov pib dua DNS cache ntawm Mac, koj yuav tsum nkag mus rau Terminal hais kom ua ntawm koj lub Mac.
Ntawm no yog yuav ua li cas yaug koj DNS cache ntawm Mac:
-
Type Command+ Space qhib Kev tsom teeb.
-
Type Terminal, thiab xaiv Terminal los ntawm cov txiaj ntsig tshawb.
Koj tuaj yeem nkag mus rau Terminal los ntawm kev mus rau Go > Utilities > Terminal.
-
Nkag mus rau cov lus txib no rau hauv Terminal qhov rai: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder thiab tom qab ntawd nias Enter.
Cov lus txib no tsuas yog ua haujlwm hauv macOS El Capitan thiab tshiab dua. Yog hais tias koj muaj ib tug laus version ntawm macOS, mus saib cov seem tom ntej rau cov lus txib kom raug.
-
Tau koj tus password, thiab nias enter dua.
Tus password yuav tsis tshwm sim hauv Terminal thaum koj ntaus nws. Tsuas yog ntaus tus password thiab nias nkag.
-
Koj DNS cache yuav rov pib dua, tab sis yuav tsis muaj lus rau qhov cuam tshuam hauv Terminal. Thaum ib kab tshiab tshwm, nws qhia tau hais tias tau ua tiav lawm.
Yuav ua li cas yaug DNS nyob rau hauv Cov Laus Versions ntawm macOS
Cov laus dua ntawm macOS siv cov lus txib sib txawv ntawm Terminal los yaug DNS. Txawm li cas los xij, koj pib los ntawm kev qhib lub qhov rais Terminal tsis hais qhov twg macOS version koj siv.
Ntawm no yog cov lus txib kom yaug DNS hauv txhua lub version ntawm macOS:
- El Capitan thiab tshiab: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Yosemite: sudo killall -HUP mDNSResponder
- Tsov, tsov ntxhuav, thiab Mavericks: sudo dscacheutil –flushcache
- Snow Leopard: sudo lookupd –flushcache
- Tiger: lookupd –flushcache
Dab tsi yog DNS Ua li cas?
Thaum twg koj sim nkag mus rau lub vev xaib hauv Is Taws Nem, koj txuas rau DNS server uas qhia koj lub vev xaib browser mus qhov twg. DNS server tswj hwm cov npe ntawm cov vev xaib thiab IP chaw nyob, uas tso cai rau nws saib lub vev xaib chaw nyob, nrhiav tus IP sib raug, thiab muab rau koj lub vev xaib browser. Cov ntaub ntawv ntawd tau muab khaws cia rau hauv koj lub Mac hauv DNS cache.
Thaum koj sim nkag mus rau lub vev xaib uas koj tau mus rau tsis ntev los no, koj Mac siv nws cov DNS cache es tsis txhob kuaj nrog DNS server tiag. Qhov ntawd txuag lub sijhawm, yog li lub vev xaib thauj khoom sai dua. Lub web browser tsis tas yuav mus dhau cov kauj ruam ntxiv ntawm kev sib txuas lus nrog cov chaw taws teeb DNS server, uas ua rau lub sijhawm tsawg dua ntawm kev nkag mus rau lub vev xaib chaw nyob thiab lub vev xaib thauj khoom.
Yog tias lub DNS cache hauv zos tsis raug lossis tsis raug, nws zoo li sim siv phau ntawv xov tooj qub lossis phau ntawv chaw nyob ib tus neeg tau ua phem. Koj lub vev xaib browser tshawb xyuas lub cache kom pom qhov chaw nyob IP rau lub vev xaib koj tab tom sim mus xyuas, thiab nws pom qhov chaw nyob tsis raug lossis qhov chaw nyob tsis siv. Qhov ntawd tuaj yeem ua rau qeeb qeeb lossis tiv thaiv cov vev xaib lossis lub vev xaib tshwj xeeb, xws li cov yeeb yaj kiab, los ntawm kev thauj khoom.
Thaum koj yaug koj lub DNS cache, koj qhia koj Mac kom rho tawm nws cov ntaub ntawv DNS hauv zos. Qhov ntawd yuam koj lub vev xaib los tshawb xyuas nrog DNS server tiag tiag lub sijhawm tom ntej koj sim nkag mus rau lub vev xaib. Koj yuav tsum tau yaug koj lub DNS cache tom qab hloov DNS servers ntawm koj Mac. Nws tseem tuaj yeem pab tau yog tias koj muaj teeb meem kev sib txuas.
FAQ
Kuv yuav txheeb xyuas DNS cache ntawm Mac li cas?
Qhib lub built-in Console log-viewer app ntawm koj Mac thiab ntaus any:mdnsresponder rau hauv qhov tshawb nrhiav bar. Tom qab ntawd, qhib Terminal, ntaus ntawv sudo killall -INFO mDNSResponder, thiab nias Enter lossis Return Rov qab rau hauv lub Console app, koj tuaj yeem saib cov npe ntawm cached DNS cov ntaub ntawv.
Kuv yuav ua li cas tshem DNS cache ntawm Windows 10?
Txhawm rau tshem DNS cache ntawm Windows 10, qhib Khiav lub thawv, ntaus hauv ipconfig /flushdns, thiab nyem OK. Koj tuaj yeem siv tib lo lus txib hauv Windows hais kom sai yog tias koj xav tau cov ntaub ntawv ntxiv ntawm cov txheej txheem.
DNS cache lom yog dab tsi?
DNS cache lom, tseem hu ua DNS spoofing, yog thaum ib tus neeg txhob txwm tso cov ntaub ntawv cuav lossis tsis raug rau hauv DNS cache. Tom qab cov ntaub ntawv tsis raug tso tawm, cov lus nug DNS yav tom ntej yuav rov qab cov lus teb tsis raug thiab coj cov neeg siv mus rau cov vev xaib tsis raug.