Cacisa i-cache ye-DNS ngokulula kwi-Ubuntu

malunga ne-dns cache engenanto

Kwinqaku elilandelayo siza kujonga Singayigungxula njani i-DNS cache ku-Ubuntu. Yonke into ngoku kunye ne-DNS cache kufuneka ifakwe kwi-Ubuntu system. Ngale nto siyakuphepha ukungqubana kweedilesi ze-IP. Kwimeko apho umntu engazi okwangoku, yithi i-DNS (Inkonzo Yegama Lommandla) linoxanduva lokunika igama lewebhusayithi kwi-IP ehambelanayo.

I-DNS ithathwa njengenye yeendawo ezibaluleke kakhulu zonxibelelwano lwe-Intanethi. Ngenjongo yoku ukufikelela ngokukhawuleza kwiiwebhusayithi ezityelelweyo rhoqo, oomatshini bethu bagcina umkhondo weerekhodi ze-DNS, okanye ngamanye amagama, bazigcine.

Ukuthiya iidilesi ze-IP yeyona nto aziwayo kwiinkqubo ze-DNS. Umzekelo, ukuba idilesi ye-IP yendawo kaGoogle yile 216.58.210.163, uninzi lwabantu lufika lubhala www.google.com hayi idilesi ye-IP njengoko kulula kakhulu ukuyikhumbula. Idilesi ye-IP yesiza inokutshintsha ngenxa yezizathu ezininzi, ngaphandle kokuba unike igama kwakhona kwiwebhusayithi. Ukuba ufuna ukwazi ngakumbi ngenkqubo yegama lesizinda, unganxibelelana ne bapapashe kwiWikipedia ngayo.

Ukuba i-cache ye-DNS ayikaze icace, ingakhokelela kwiindidi ezahlukeneyo zeempazamo. Ezi mpazamo zinokwenzeka ngakumbi xa iwebhusayithi itshintsha idilesi ye-IP. Oku kunokubangela ungquzulwano lwedilesi ye-IP. Ke, ukunqanda le ngxaki, I-cache ye-DNS yomatshini wethu kufuneka igungxulwe rhoqo. Ukongeza, ukucoca i-cache ye-DNS kuya kunceda ekupheliseni idatha engafunekiyo ehlala kwinkqubo kunye nokusombulula ezinye iingxaki zobuchwephesha ezinxulumene nempazamo eyaziwayo 'amangenelo aphelelwe lixesha'.

Kule migca ilandelayo siza kubona ukuba njani Ukucoca i-cache ye-DNS kwinkqubo yokusebenza ye-Ubuntu kumanyathelo ambalwa alula nacacileyo anokuwasebenzisa kwizixhobo zethu.

Ukucoca i-cache ye-DNS koomatshini boBuntu

Ukwenza lo msebenzi siya kuba neendlela ezahlukeneyo.

Coca i-DNS usebenzisa isisombululo senkqubo

Ngaphambi kokucoca i-cache ye-DNS, siya kuba nakho jonga amanani e-DNS ukuvula i-terminal (Ctrl + Alt + T) kunye nokuchwetheza lo myalelo ulandelayo:

sudo systemd-resolve --statistics

Imveliso ekufuneka iboniswe sisiphelo sendlela kufuneka ijongeke ngolu hlobo lulandelayo:

Iinkcukacha-manani ezingcolileyo ze-dns

Ngokusekwe kwisikrini esingentla, ubungakanani becache yangoku 106.

Nje ukuba sazi amanani, sinokudlulela phambili Ukucoca i-cache ye-DNS usebenzisa isisombululo. Yidemon ye-DNS eyakhelwe kuyo inkqubo kwaye inkqubo yakho sele iyisebenzisela izinto ezininzi. Njengomtyholi Inkqubo-yokusombulula Isebenza kuzo zonke iinkqubo ze-Ubuntu, siya kuba nakho ukuyisebenzisa ukucoca i-cache yethu ye-DNS. Kuya kufuneka sisebenzise lo myalelo ulandelayo kwi-terminal (Ctrl + Alt + T):

sudo systemd-resolve --flush-caches

ukuba Qinisekisa ukuba inkqubo yokukhupha iphumeleleSiza kuqhuba umyalelo kwakhona kwisiphelo sendlela ukubona i-cache Statistics njengoko besenzile ngaphambili:

Coca amanani e-dns

sudo systemd-resolve --statistics

Njengoko ubona kwisikrini esingentla, iparameter yangoku yesayizi yecache zero. Oku kuthetha ukuba i-cache icocwe ngempumelelo, kwaye yile nto siyifunayo.

I-Flush cache usebenzisa i-dns-clean command

Enye indlela esebenzayo yoku Cacisa i-cache yethu ye-DNS kukusebenzisa lo myalelo ulandelayo kwisiphelo sendlela (Ctrl + Alt + T):

Isiqalo esicocekileyo se-DNS

sudo /etc/init.d/dns-clean start

Yeyona nto iphambili umsebenzisi ekufuneka eyazi malunga nokucoca i-cache ye-DNS ku-Ubuntu. Kuzo zonke iimeko, Inkqubo ilula kwaye ayifuni ukuqala kwakhona inkqubo yonke.

Recuerda que kwi-Ubuntu 16.04, i-DNS cache ayinikwenziwa ngokungagqibekanga. Siya kuba nakho ukusebenzisa izixhobo ezinje nge bind, dnsmasq, nscd, njl. ukwenza ii-cache ze-DNS kwikhompyuter yethu. Nokuba yeyiphi Inkonzo ye-DNS Ukuba inkqubo yakho iyasebenza, ayifanelanga ukuba yingxaki ukuyiphinda uyicime ukuze ucime i-cache ye-DNS.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo, shiya eyakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   UAndreale Dicam sitsho

    Ingcebiso elungileyo, enkosi kakhulu.