To resolve a hostname to an IP address from the command line and see which DNS server answers, an administrator can use…