Google interview question

How does a DNS work?