Resolve hostname at startup so we only do it once.