What is DNS? | How DNS works
What is DNS
Example
human-readable domain names: api.mysite.com
↓
DNS Solver
↓
computer-friendly IP address: 192.168.1.1
To put it simply, DNS translates human-readable domain names to machine-readable IP addresses
1. google.com is typed into the browser, and the browser sends the domain name to the DNS resolver.
2. The resolver queries a DNS root name server.
3. The root server responds to the resolver with the address of a TLD DNS server. In this case, it is .com.
4. The resolver then makes a request to the .com TLD.
5. The TLD server responds with the IP address of the domain’s name server, google.com (authoritative name server).
6. The DNS resolver sends a query to the domain’s nameserver.
7. The IP address for google.com is then returned to the resolver from the nameserver.
8. The DNS resolver responds to the web browser with the IP address (142.251.46.238) of the domain requested initially.
reference
https://www.cloudflare.com/en-au/learning/dns/what-is-dns/