How dns servers work know the ip address of website?

前端 未结 4 1397
孤独总比滥情好
孤独总比滥情好 2021-01-15 05:34

My question is that suppose my website is \"xyz.com\" I can access it anywhere in the world, but I\'m curious to know how does all the dns servers know the ip address of my

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-15 06:22

    • URL resolution in DNS happens from right to left.
    • DNS comprises of Root Servers, Top Level Domain(TLD) and Authoritative Servers

    For the example www.example.com :

    • Root Server queries the TLD for '.com' extension
    • TLD searches the DNS cache for the domain, if not it queries the corresponding authoritative server for the domain 'example.com' to finally get the IP address for the host www.example.com, then return that IP address to your computer.

提交回复
热议问题