Resolve hostname once