Yadda za a zubar da cache na DNS tare da ganowa a cikin OS X Yosemite

ja-dns-gabatarwa-hoto

Da alama ranar tana matsewa kuma tare da digiri 28 a cikin inuwa a cikin Las Palmas de Gran Canaria za mu bayyana muku yadda za a wofintar da shagon DNS ɗin idan kuna da matsaloli yayin warware wani IP akan yanki. Wannan ƙaramin koyawa ne da aka mai da hankali ga masu amfani da ci gaba tunda dole ne ku yi amfani da OS X Terminal.

Abu na farko da yakamata ka sani shine yadda zamuyi wannan aikin ya canza tare da bayyanar OS X Yosemite kuma wannan, kamar yadda muka sani, zai ci gaba a cikin wannan yanayin akan OS X El Capitan wanda za'a sake shi a lokacin bazara. A cikin tsarin aiki kafin OS X Yosemite, aikin anyi shi ne ta hanyar mDNSResponder, amma yanzu an maye gurbin shi da Discoutil.

A cikin OS X Yosemite, don ci gaba da zubar da cache na DNS dole ne ku yi amfani da haɗin umarni da yawa a cikin OS X Terminal. Waɗannan dokokin za su zubar da ma'ajin MDNS (shi ne Multicast) da UDNS cache (Unicast). Bari mu fara da tsarin da zaku yi domin samun damar zubar da cache ɗin DNS:

Mun buɗe Terminal, wanda muke nema a cikin Haske ko zuwa Launchpad> JAYAYAN fayil> Terminal. Da zarar Terminal ya buɗe, zaku ci gaba da rubuta waɗannan umarnin:

sudo discoveryutil mdnsflushcache

y

sudo discoveryutil udnsflushcaches

bayyanannu-cache-dns

Kamar yadda kake gani, akwai umarni guda biyu daban kuma duk lokacin da muka shigar da daya za'a tambaye mu kalmar sirri ta mai gudanarwa tunda sun fara da sudo. Yanzu, idan kuna son yin aikin tare da layi ɗaya na lambar, ya kamata ku rubuta shi kamar haka:

sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed

Don m labarin mun nuna cewa idan kafin ɓoye maɓallin DNS ɗin kuna son ganin bayanin cewa akwai sosai a cikin Multicast kamar yadda yake a cikin Unicast dole ne kuyi amfani da waɗannan umarnin:

sudo discoveryutil mdnscachestats

ko wannan don Unicast:

sudo discoveryutil udnscachestats

 

Idan kuna son yin wannan akan sauran tsarin OS X:

OS X Mavericks (10.9)

1
dscacheutil -flushcache; sudo killall -HUP mDNSResponder

OS X Zakin Mountain (10.8)

1
sudo killall -HUP mDNSResponder

OS X Zaki (10.7)

1
sudo killall -HUP mDNSResponder

OS X Damisa mai Danshi (10.6)

1
sudo dscacheutil -flushcache

OS X Damisa (10.5)

1
sudo dscacheutil -flushcache

OS X Tiger (10.4)

1
lookupd -flushcache

Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

2 comments, bar naka

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   rafa m

    a 10.10.4 mdnsrespond dawo

  2.   kafada m

    Haka yake da Rafa a cikin l1 10.10.4 bai san dokokin ba.