How domain is resolved to an IP:
When you enter a domain name in your browser, the browser performs a lookup using the Domain Name System (DNS). The DNS translates the domain name into an IP address. The browser then connects to the web server using this IP address. The server sends the requested content back to the browser, which displays it for you.