+----------------+ +----------------+ +----------------+
| User Device | | DNS Server | | Website Server |
| (Browser) | | | | |
+-------+--------+ +--------+-------+ +--------+-------+
| | |
| 1. Enter domain name | |
|------------------------>| |
| | |
| 2. Check local cache | |
|<------------------------| |
| | |
| 3. Query DNS if needed | |
|------------------------>| |
| | 4. Lookup IP address |
| |----------------------->|
| | |
| | 5. Return IP address |
| |<-----------------------|
| 6. Connect to IP address| |
|------------------------------------------------->|
This diagram shows the interaction between the user's device, the DNS server, and the website server during the process of resolving a domain name to an IP address and connecting to the website.