People type names like www.example.com, but packets are delivered to numbers. Every machine on the internet is reached by an IP address such as 203.0.113.10 (a range set aside for examples). Names are easy to remember, can be moved to a new address without telling anyone, and one name can stand for many machines. Something must translate, and that is the Domain Name System, DNS.
Your device does not do the whole job itself. A small piece of software, the stub resolver, sends one question over UDP to port 53 of a recursive resolver: a server run by your network provider, or a public one, whose job is to find the answer for you. Only when the answer comes back can the browser open a connection to the site.
💡Good to know
DNS runs before the first byte of the page: with no address there is no connection.