Canja sabobin OS X DNS daga tashar tsarin

Terminal-single-yanayin-aikace-aikace-yosemite-0

Masu amfani da Mac na gaba na iya samun hanyar canza saitunan masu taimako. Sabobin DNS akan Mac daga tashar ba tare da samun damar zuwa kowane lokaci zuwa ga cibiyar kula da hanyar sadarwa a cikin abubuwan da aka zaɓa ba, wanda kodayake wani lokacin zai iya zama mafi kwanciyar hankali ga yawancin masu amfani da Mac, hanyar ta hanyar tashar tana ba da wasu fa'idodin kamar gyara matsala DNS na ɗan lokaci ta hanyar ssh remote management.

Don canza saitunan DNS daga layin umarni a cikin OS X, bari yi amfani da umarnin 'networksetup'. Duk da yake tsarin sadarwar yanar gizo yana da amfani masu yawa da rikitarwa, don saitin DNS yana da sauƙi.

Terminal-saita-dns-0
Ana samun umarnin tsarin networkset a cikin duk nau'ikan OS X na zamani kuma zamu bi shi tare da -setdnsservers, a ƙasa za mu nuna sabis na cibiyar sadarwa da kuma sabobin DNS da muke son saitawa, suka rage kamar yadda aka nuna a hoton da ke sama:

-setdnsservers networksetupup (sabis na cibiyar sadarwa) (IP DNS)

Misali, don saita Mac ta kan layi Wi-Fi zuwa Google (DNS 8.8.8.8) da tsari zai zama

cibiyar sadarwa -setdnsservers Wi -Fi 8.8.8.8

Hakanan zamu iya daidaitawa sabobin DNS da yawa idan akwai ajiyar wuri saboda gaskiyar cewa a wani lokaci cikin lokaci uwar garken farko ko na biyu baza ta iya riskarwa ba. Don yin haka, za mu ƙara ƙarin adiresoshin IP na sabobin DNS ɗin da ke ƙasa, daga na farko zuwa na ƙarshe don fifiko inda na farko zai zama tsoho wanda tsarin zai yi ƙoƙarin haɗawa da shi.

networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4 87.265.1.16 87.265.1.17

Idan kanaso ka goge duk wata alama ta tsarin DNS domin tsarin ya samesu ta atomatik, misali ta hanyar DHCP, shigar da umarni mai zuwa:

networketup -setdnsservers Wi -Fi

A ƙarshe, don bincika waɗanne sabobin DNS ɗin da kuka saita, za mu yi ta hanyar:

cibiyar sadarwa


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

Kasance na farko don yin sharhi

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.