What is DNS?
The domain name system (DNS) is like a phonebook of the internet.
When you type a website domain on your browser, one of the things that happen is the request goes to a DNS server which acts like a middleman between you the client, and the intended server which stores the website you are trying to access.
What it does is it matches the domain to an IP address then processes the request accordingly.