Amazon interview question

How is a hostname resolved from the command-line?