Me Manatoko DNS Ma Te Rohe Ma Te Kaiwhakamahi Iho o OSX?

OSX Mac Terminal

Ko tetahi o aku kaihoko i nuku i ta raatau paetukutuku ki te kaute manaaki nui. I whakahoutia e raatau nga waahanga DNS o ta raatau rohe mo nga rekoata A me CNAME engari he uaua ki te whakatau mena kei te whakatika te pae me te kaute manaaki hou (Wāhitau IP hou).


He iti nei nga mea hei whakaaro ake maau i a DNS e raru ana. Te maarama ki te mahi a te DNS, te maarama me pehea te mahi a to Rehita Rehita, ka maarama hoki me pehea te whakahaere a to kaihauturu i to urunga rohe.


Pehea te Mahi o DNS


Ka paato ana koe i tetahi rohe ki te tirotiro.


  1. Kua tirohia te rohe i roto i te Ipurangi ingoa tūmau ki te kimi kei hea te tono e tukuna atu.
  2. I te wa o te tono rohe paetukutuku (http), ka tukuna e te kaituku ingoa whakahoki te wāhitau IP ki to rorohiko.
  3. Ka penapenahia e to rorohiko tenei rohe, e mohiotia ana ko to Keteroki DNS.
  4. Ka tukuna te tono ki te kaimanaaki, maana te huarahi e tono i roto me te whakaatu i to papaanga.


Pehea te Mahi o To Rehita Rehita


He panui mo tenei… kaore ko nga kairēhita rohe e whakahaere ana i to DNS. Kotahi taku kaihoko, hei tauira, ko te rehita i o raatau rohe ma roto i a Yahoo! Yahoo! kaore e whakahaere i te rohe ahakoa te ahua o te whakahaere. He kaihoko noa era mo ratou Tucows. I te mutunga, ka huri koe ki o tautuhinga DNS ki Yahoo !, Ka pau pea i te wa haora i mua i te whakahoutanga o aua whakarereketanga i roto i te tūturu kairēhita rohe


Ka hou ana o tautuhinga DNS, ka whakatauhia puta noa i te tini o nga kaituku puta noa i te Ipurangi. I te nuinga o nga wa, ka roa tonu nei ka hutia ruarua hēkona. Koinei tetahi o nga take ka utua e te iwi DNS whakahaerehia. Ko nga kamupene DNS e whakahaerehia ana e rua taarua ana, he tere whakaharahara… he tere atu i to kairēhita rohe.


Ka whakahoutia nga kaitoha Ipurangi, i te wa e whai ake nei ka tono te punaha DNS ki to punaha, ka whakahokia mai te wahitau IP kei reira to nohoanga. FAKATOKANGA: Kia mahara kua korero ahau i te wa e whai ake nei ka tono to punaha. Mena i tono koe i mua i tera rohe, ka kaha pea te Ipurangi engari ko to punaha rohe kei te whakatau i tetahi wahitau IP tawhito i runga i to Keteroki DNS.


Me pehea te mahi a to Kaihautū DNS


Ko te wāhitau IP kua whakahokia ka keteroki e to punaha o te rohe ehara i te mea motuhake ki te paetukutuku kotahi. Akene he maha nga rau o nga paetukutuku ranei e hautehia ana i runga i te Wāhitau IP kotahi (te tikanga he kaiwhakarato, he kaiwhakarato mariko ranei). Na, i te wa e tonoa ana to rohe mai i te Wāhitau IP, ka tukuna e to kaihautu to tono ki te tauwāhi kōpaki motuhake i roto i te kaitoha me te whakaatu i to whaarangi.


Me Pehea te Raparongoā DNS


Na te mea e toru nga punaha kei konei, e toru ano nga punaha hei raru! Tuatahi, ka hiahia koe ki te tirotiro i to punaha o te rohe kia kite koe kei hea te Wāhitau IP e tohu ana ki roto i to punaha:


OSX Ping Terminal


He maamaa tenei ma te whakatuwhera i te matapihi Terminal me te patopato:


ping domain.com


Ka taea ranei e koe te mahi i tetahi ingoa ingoa kaitoha rapu:


nslookup domain.com


Tirohanga Terminal


Mena kua whakahoutia e koe nga tautuhinga DNS i roto i to rehita rohe, ka hiahia koe ki te whakarite kia maamaa to keteroki DNS ka hiahia ano koe ki te tuku tono. Hei horoi i to keteroki DNS i te OSX:


sudo dnscacheutil -flushcache


Keteroki Panuku DNS Cache


Ka taea e koe te tarai ano i te ping or nslookup kia kite mena kei te tau te rohe ki tetahi waahi IP hou i tenei waa.


Ko te mahi ka whai ake ko te titiro mena kua whakahoutia nga kaiwhakarato DNS Internets. Kia mau DNSstuff ngawari mo tenei, ka taea e koe te tiki i te DNSreport katoa ma ta raatau papanga he tino pai. tōhito he Kaitirotiro DNS pai kei roto i tana papamahi ka haere raatau ki te paatai Google, OpenDNS, Paetaha, me nga Whatunga Ipurangi kia kite mēnā kua horapa tika o tautuhinga huri noa i te paetukutuku.


Mena kei te kite koe i te wahitau IP e whakaatu tika ana puta noa i te paetukutuku a kaore ano i te whakaatuhia to papanga, ka taea hoki te karo i nga kaitoha Ipurangi me te korero ki to punaha kia tika te tuku i te tono ki te Wāhitau IP. Ka taea e koe tenei ma te whakahou i to konae kaitautoko me te whakaheke i to DNS. Ki te mahi i tenei, tuwhera Terminal me te momo:


sudo nano / etc / ope


Kaihaututu Terminal Sudo Nano


Whakauruhia to kupuhipa punaha ka pato i te tomokanga. Ma tera e kawe tika mai te konae ki Terminal hei whakatika. Nekehia to pehu ma te whakamahi i au pere ka taapiri i tetahi raina hou me te wahitau IP ka whai ake te ingoa rohe.


Ko te Mahere Tiaki Tiaki Korero


Hei penapena i te konae, penehi mana-o i runga i to papapihi ka hoki ki te tango i te ingoa ingoa. Putaatu i te etita ma te pehi mana-x, ka whakahoki koe ki te raina whakahau. Kaua e wareware ki te panui i to keteroki. Mena kaore i pai te haere mai o te papaanga, akene he raru kei te rohe ki to kaimanaaki me whakapiri atu koe ki a ratau me whakamohio atu.


Panui whakamutunga… kaua e wareware ki te whakahoki i to konae manaaki ki tana putanga taketake. Kaore koe e hiahia ki te waiho i tetahi urunga ki reira e hiahia ana koe ki te whakahou aunoa!


Ma te whai i enei mahi, i taea e au te whakaatu ko aku whakauru DNS i roto i te kairēhita he mea hou, ko nga whakaurunga DNS i runga i te Ipurangi he mea hou, ko te peera DNS o taku Mac he mea hou, a ko te DNS a te kaiwhakahaere paetukutuku ki tenei ra… he pai ki te haere!

He aha koutou whakaaro?

Whakamahia ai e tenei pae i te Akismet hei whakaiti i te mokowhiti. Akohia te tukatuka o to raraunga korero.