Amazon Interview Question

How is a hostname resolved from the command-line?