How DNS works
DNS is a fundamental part of how the internet works, and understanding its intricacies is important to stay ahead of the curve in the IT world.
đ Think of DNS as the internet's phonebook. đ It's the hero that turns friendly domain names (like www.mypage.com) into IP addresses that computers use to chat! đģđ¨ī¸
1ī¸âŖ You type a URL into your browser. đĨī¸ Your computer first checks its local resources. This includes:
đ The host file - a simple text file mapping domain names to IP addresses.
đĻ Various caches - mini storage areas in your computer, operating system, and router where recently visited website addresses are stored.
This quick check lets your computer find the IP address of a website without needing to ask a DNS server. đ
2ī¸âŖ If the domain name isn't in the host file or any of the caches, your computer sends a request đ to a DNS server.
The server searches its database and returns the correct IP address to your computer. đ¯
3ī¸âŖ Once your computer gets the IP address from the DNS server, it uses that address to connect to the website. đ It also stores the domain name and IP address in its DNS cache for quick access the next time you visit the website. đ
đŗ DNS is a hierarchical system, with DNS servers arranged in a tree-like structure. đ˛
This structure, known as the DNS namespace, allows for efficient and quick resolution of domain names to IP addresses, ensuring the smooth functioning of the internet. đ
âī¸ Now, let's consider how DNS operates in today's expansive Hybrid Multi-Cloud environments. Public Clouds resolve their Internal FQDNs to Service Endpoints using:
đ ī¸ The Provider's own DNS Resolvers,
đˇī¸ C-Name aliases in Private DNS Zones,
đ And Virtual Network Links.
To resolve these FQDNs from another Cloud (Private or Public), it requires Conditional Forwarding and additional Routing between the EDGEs with NAT/SNAT. đ While SNAT/NAT might not always be necessary, it's good to have for ensuring seamless interconnectivity. đ
đŧī¸ The attached gif simplifies the DNS process, but remember, in today's multi-cloud environment, the process is much more complex and fascinating! đŠī¸