only resolve hostname if requested