DNS explained

DNS explained

What is DNS

DNS stands for Domain Name System, is to translate the host name to IP address since human beings are unable to remember a long string of digits.

Why is DNS so important

Without DNS, the Internet will collapse, you will have to pay your bill in the department or shopping in the store or view the TV schedule on the newspaper.

How it works?

  1. When you type www.example.com in your web browser, the browser will add a dot at the end of the url, that means the actual url you're visiting is www.example.com.. The dot means the name space for the ROOT. Why the dot at the end is so important, because it's where it all begins.
  2. When you first search for www.example.com., your browser and your OS will first determine if they know what the IP address is already. It could be configured on your computer or it could be in the memory, what the cool kids call cache.
  3. So the browser asks the OS and if they both don't know where www.example.com. is, what will happen next? The OS is configured to ask a resolving name server for IP addresses it does not know.
  4. This resolving name server is the workhorse of the DNS lookup. It is either configured manually or automatically within your OS. Your OS asks (or queries) the resolving name server for www.example.com.
  5. The resolving name server may or may not have this in memory or you know, cache. Never mind.
  6. The only thing that all resolving name servers should know, is where to find the root name servers. Yes, the enigmatic dot that appears at the end of every domain name you type into that address bar.
  7. The root name servers will reply with "I don't know, but I do know where to find the com name servers. Try there."
  8. The com name servers are called the Top Level Domain name servers or TLD name servers.
  9. The resolving name server then takes all of this information from the root name servers, puts it in its cache, and then goes directly to the com TLD name servers.
  10. When the resolving name server queries www.example.com, the TLD name servers respond, "I don't know, but I do know where to find the Example.com name servers. Try there."
  11. This next set of name servers are the authoritative name servers.
  12. So how did the com TLD name servers know which authoritative name servers to use? With the help of the domain's registrar. When a domain is purchased, the registrar is told which authoritative name servers that domain should use. They notify the organization responsible for the top level domain(the registry), and tell them to update the TLD name servers.
  13. Anyway, the resolving name server takes the response from the TLD name server, stores it in cache, and then queries the Exmaple.com name servers. At this point, the authoritative name server will say, "Hey, I know where that is! Tell your browser to go to the IP address 192.168.1.1!"
  14. The resolving name server taks this information from the authoritative name server, puts it in cache, and gives the reply to the OS. The OS then gives this to the browser. And the browser then makes a connection to the IP address requesting the web page for www.example.com.
  15. While the process seems complex, the whole cycle takes less than it takes you to blink an eye. DNS was designed to work extremely fast and efficiently. It is an integral part of the Internet. Once you understand this, you can clearly see the many different facets and organizations that are responsible for a single DNS lookup.

Recap

resolving name server -> root name server -> TLD name servers -> authoritative name servers

References

https://www.youtube.com/watch?v=72snZctFFtA

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子年栓,更是在濱河造成了極大的恐慌兰迫,老刑警劉巖本冲,帶你破解...
    沈念sama閱讀 212,029評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件朋其,死亡現(xiàn)場離奇詭異,居然都是意外死亡嗡载,警方通過查閱死者的電腦和手機匾二,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,395評論 3 385
  • 文/潘曉璐 我一進店門哮独,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人察藐,你說我怎么就攤上這事皮璧。” “怎么了分飞?”我有些...
    開封第一講書人閱讀 157,570評論 0 348
  • 文/不壞的土叔 我叫張陵悴务,是天一觀的道長。 經(jīng)常有香客問我譬猫,道長讯檐,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,535評論 1 284
  • 正文 為了忘掉前任染服,我火速辦了婚禮别洪,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘柳刮。我一直安慰自己挖垛,他們只是感情好,可當我...
    茶點故事閱讀 65,650評論 6 386
  • 文/花漫 我一把揭開白布秉颗。 她就那樣靜靜地躺著痢毒,像睡著了一般。 火紅的嫁衣襯著肌膚如雪蚕甥。 梳的紋絲不亂的頭發(fā)上哪替,一...
    開封第一講書人閱讀 49,850評論 1 290
  • 那天,我揣著相機與錄音菇怀,去河邊找鬼夷家。 笑死,一個胖子當著我的面吹牛敏释,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播摸袁,決...
    沈念sama閱讀 39,006評論 3 408
  • 文/蒼蘭香墨 我猛地睜開眼钥顽,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了靠汁?” 一聲冷哼從身側(cè)響起蜂大,我...
    開封第一講書人閱讀 37,747評論 0 268
  • 序言:老撾萬榮一對情侶失蹤闽铐,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后奶浦,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體兄墅,經(jīng)...
    沈念sama閱讀 44,207評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,536評論 2 327
  • 正文 我和宋清朗相戀三年澳叉,在試婚紗的時候發(fā)現(xiàn)自己被綠了隙咸。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,683評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡成洗,死狀恐怖五督,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情瓶殃,我是刑警寧澤充包,帶...
    沈念sama閱讀 34,342評論 4 330
  • 正文 年R本政府宣布,位于F島的核電站遥椿,受9級特大地震影響基矮,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜冠场,卻給世界環(huán)境...
    茶點故事閱讀 39,964評論 3 315
  • 文/蒙蒙 一家浇、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧慈鸠,春花似錦蓝谨、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,772評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至督笆,卻和暖如春芦昔,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背娃肿。 一陣腳步聲響...
    開封第一講書人閱讀 32,004評論 1 266
  • 我被黑心中介騙來泰國打工咕缎, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人料扰。 一個月前我還...
    沈念sama閱讀 46,401評論 2 360
  • 正文 我出身青樓凭豪,卻偏偏與公主長得像,于是被迫代替她去往敵國和親晒杈。 傳聞我的和親對象是個殘疾皇子嫂伞,可洞房花燭夜當晚...
    茶點故事閱讀 43,566評論 2 349

推薦閱讀更多精彩內(nèi)容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc閱讀 2,822評論 0 0
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,312評論 0 10
  • 六月份目標:8B1D 本月新入會:3個 名單:0個 推薦:0個 學習:范德士先生的三個故事 溫暖:溫暖了2朋友。啟...
    周曼Melaleuca閱讀 159評論 0 0
  • 2017年平安夜下午的暖陽里,綠城集團&輕舟藝術(shù)聯(lián)袂推出的文化藝術(shù)社羞答答開啟第一次沙龍活動帖努。 在綠城集團的大力支...
    輕舟藝術(shù)閱讀 228評論 0 2
  • 心之所想撰豺,即為所得。一切并沒有那么糟拼余,笑著面對污桦,也許就會花開滿山坡。不要害怕匙监,不要逃避凡橱,無欲則剛,努力則強舅柜,越努力...
    紀錄回憶閱讀 117評論 0 0