Good basic article on how DNS works. A fundamental understanding of DNS is really important not only for websites, but also for things like Exchange Server and Active Directory.
https://scotch.io/tutorials/dns-explained-how-your-browser-finds-websites