added flag to resolve hostname to IP address