Amazon interview question

How does DNS work in a network