Name resolution works by querying DNS servers to translate domain names into IP addresses. When you enter a domain name into your browser, your device sends a request to a DNS server, which responds with the corresponding IP address, allowing your device to establish a connection with the desired web server.