What is DNS? how does it work?

Domain Name Server (DNS) is a decentralized navigation protocol which allows us to access websites. It works like a directory that matches names with numbers.