When you enter a domain name — like facebook.com — into your browser, your computer doesn’t know how to connect to the website. It needs an IP address first. To get the IP address, it queries a DNS server for the domain name you entered, and the DNS server gives it the IP address that corresponds to the domain name. IP address in hand, your computer proceeds merrily to the website you requested.