DNS Cache yog dab tsi thiab nws ua haujlwm li cas?

Cov txheej txheem:

DNS Cache yog dab tsi thiab nws ua haujlwm li cas?
DNS Cache yog dab tsi thiab nws ua haujlwm li cas?
Anonim

A DNS cache (qee zaus hu ua DNS daws teeb meem cache) yog ib ntus database, tswj hwm los ntawm lub khoos phis tawj lub khoos phis tawj, uas muaj cov ntaub ntawv ntawm txhua qhov kev mus ntsib tsis ntev los no thiab sim mus ntsib cov vev xaib thiab lwm yam hauv internet.

Hauv lwm lo lus, DNS cache tsuas yog lub cim xeeb ntawm kev tshawb nrhiav DNS tsis ntev los no uas koj lub khoos phis tawj tuaj yeem xa mus sai sai thaum nws sim txiav txim siab seb yuav thauj lub vev xaib li cas.

Image
Image

Cov ntaub ntawv hauv kab lus no siv rau cov neeg siv hauv tsev uas tsis tau hloov pauv lawv qhov chaw DNS.

Lub Hom Phiaj ntawm DNS Cache

Lub internet vam khom rau lub Domain Name System kom tswj tau qhov ntsuas ntawm txhua lub vev xaib pej xeem thiab lawv qhov chaw nyob IP. Koj tuaj yeem xav tias nws yog phau ntawv xov tooj.

Nrog phau ntawv xov tooj, peb tsis tas yuav cim txhua tus xov tooj, uas yog tib txoj kev xov tooj sib txuas: nrog tus lej. Tib txoj kev, DNS siv yog li peb tuaj yeem zam kom tsis txhob nco txhua lub vev xaib IP chaw nyob, uas yog tib txoj hauv kev sib txuas lus nrog cov vev xaib.

Qhov no yog qhov tshwm sim tom qab kab hlau rhuav thaum koj nug koj lub web browser kom thauj lub vev xaib.

Koj ntaus hauv qhov URL zoo li lifewire.com thiab koj lub vev xaib browser nug koj tus router rau IP chaw nyob. Lub router muaj qhov chaw nyob DNS server khaws cia, yog li nws nug DNS server rau IP chaw nyob ntawm lub npe hostname. DNS server pom tus IP chaw nyob uas yog nyob rau lifewire.com thiab tom qab ntawd tuaj yeem nkag siab lub vev xaib twg koj tab tom thov, tom qab ntawd koj tus browser tuaj yeem thauj cov nplooj ntawv tsim nyog.

Qhov no tshwm sim rau txhua lub vev xaib uas koj xav mus xyuas. Txhua zaus koj mus ntsib lub vev xaib los ntawm nws lub npe host, lub vev xaib browser pib thov tawm hauv Is Taws Nem, tab sis qhov kev thov no tsis tuaj yeem ua tiav kom txog thaum lub vev xaib lub npe "hloov" rau hauv IP chaw nyob.

Qhov teeb meem yog tias txawm hais tias muaj ntau tons ntawm pej xeem DNS servers koj lub network tuaj yeem siv los sim ua kom cov txheej txheem hloov dua siab tshiab / daws teeb meem, nws tseem ceev dua kom muaj cov ntawv luam hauv zos ntawm "phau ntawv xov tooj," uas yog qhov twg DNS caches tuaj ua si.

Lub DNS cache sim ua kom cov txheej txheem nrawm dua los ntawm kev tuav lub npe daws teeb meem ntawm cov chaw nyob tsis ntev los no ua ntej qhov kev thov raug xa tawm mus rau hauv internet

Muaj tiag tiag DNS caches ntawm txhua lub hierarchy ntawm "lookup" txheej txheem uas thaum kawg tau txais koj lub computer mus thauj lub vev xaib. Lub khoos phis tawj ncav cuag koj lub router, uas tiv tauj koj ISP, uas yuav ntaus lwm ISP ua ntej xaus ntawm qhov hu ua "hauv paus DNS servers." Txhua lub ntsiab lus hauv cov txheej txheem muaj DNS cache rau tib lub laj thawj, uas yog txhawm rau ua kom lub npe daws teeb meem sai.

Yuav ua li cas DNS Cache ua haujlwm

Ua ntej browser teeb tsa nws qhov kev thov rau sab nraud network, lub khoos phis tawj cuam tshuam txhua tus thiab saib lub npe sau npe hauv DNS cache database. Cov ntaub ntawv muaj ib daim ntawv teev npe ntawm cov npe sau npe tam sim no thiab cov chaw nyob uas DNS suav rau lawv thawj zaug thov.

Cov ntsiab lus ntawm lub zos DNS cache tuaj yeem pom ntawm Windows siv cov lus txib ipconfig /displaydns, nrog cov txiaj ntsig zoo ib yam li qhov no:

docs.google.com

Record Name…..: docs.google.com

Record Type…..: 1

Sijhawm Ua Neej….: 21

Data Length…..: 4

Section…….: Teb

A (Host) Record…: 172.217.6.174

Nyob hauv DNS, cov ntaub ntawv "A" yog ib feem ntawm DNS nkag uas muaj qhov chaw nyob IP rau tus tswv lub npe. Lub DNS cache khaws qhov chaw nyob no, lub npe thov lub vev xaib, thiab ob peb lwm yam tsis tau los ntawm tus tswv DNS nkag.

DNS Cache Poisoning yog dab tsi?

A DNS cache ua rau muaj kuab lom lossis ua qias tuaj thaum tsis tso cai sau npe lossis tus IP chaw nyob raug tso rau hauv.

Qee zaus lub cache tuaj yeem ua rau muaj kev puas tsuaj vim kev ua haujlwm tsis zoo lossis kev ua haujlwm raug xwm txheej, tab sis DNS cache lom feem ntau cuam tshuam nrog cov kab mob hauv computer lossis lwm yam kev tawm tsam uas ntxig DNS tsis raug rau hauv cache.

Kev phom sij ua rau cov neeg thov raug xa rov qab mus rau qhov chaw tsis raug, feem ntau yog cov vev xaib phem lossis nplooj ntawv uas muaj kev tshaj tawm.

Piv txwv li, yog tias cov ntaub ntawv docs.google.com los ntawm saum toj no muaj cov ntaub ntawv "A" sib txawv, ces thaum koj nkag mus rau docs.google.com hauv koj lub web browser, koj yuav raug coj mus rau lwm qhov.

Qhov no ua rau muaj teeb meem loj rau cov vev xaib nrov. Yog tias tus neeg tawm tsam hloov koj qhov kev thov rau Gmail.com, piv txwv li, mus rau lub vev xaib uas zoo li Gmail tab sis tsis yog, koj yuav xaus kev txom nyem los ntawm phishing nres zoo li whaling.

DNS Flushing: Nws Ua Li Cas thiab Yuav Ua Li Cas

Thaum daws teeb meem cache lom lossis lwm yam teeb meem kev sib txuas hauv Is Taws Nem, tus thawj coj hauv computer yuav xav kom yaug (piv txwv li tshem tawm, rov pib dua, lossis tshem tawm) DNS cache.

Txij li thaum tshem DNS cache tshem tawm tag nrho cov kev nkag, nws tshem tawm cov ntaub ntawv tsis raug thiab yuam koj lub khoos phis tawj rov sau cov chaw nyob tom ntej koj sim nkag mus rau cov vev xaib. Cov chaw nyob tshiab no raug coj los ntawm DNS server koj lub network tau teeb tsa los siv.

Yog li, siv cov piv txwv saum toj no, yog tias Gmail.com cov ntaub ntawv raug tshuaj lom thiab xa koj mus rau lub vev xaib coj txawv txawv, kev yaug lub DNS yog thawj kauj ruam zoo kom tau txais Gmail.com li niaj zaus.

Hauv Microsoft Windows, koj tuaj yeem yaug cov DNS cache hauv zos siv ipconfig /flushdnshais kom ua hauv Command Prompt. Koj paub tias nws ua haujlwm thaum koj pom qhov Windows IP teeb tsa tau ua tiav lub DNS Resolver Cache lossis Ua tiav qhov DNS Resolver Cache lus.

Los ntawm lub davhlau ya nyob twg, cov neeg siv macOS yuav tsum siv dscacheutil -flushcache tab sis paub tias tsis muaj "kev ua tiav" cov lus tom qab nws khiav, yog li koj tsis tau hais yog tias nws ua haujlwm. Qee qhov xwm txheej, cov neeg siv Mac tseem yuav tau tua tus neeg teb DNS (sudo killall -HUP mDNSResponder) Linux cov neeg siv yuav tsum nkag mus rau /etc/rc.d/init. d/nscd restart hais kom ua. Cov lus txib meej yuav txawv raws li koj qhov kev faib tawm Linux, txawm li cas los xij.

Ib lub router tuaj yeem muaj DNS cache ib yam, uas yog vim li cas rebooting lub router feem ntau yog ib qho kev daws teeb meem. Rau tib lub laj thawj koj tuaj yeem yaug DNS cache ntawm koj lub computer, koj tuaj yeem rov pib dua koj lub router kom tshem cov DNS nkag khaws cia hauv nws lub cim xeeb ib ntus.

Pom zoo: