Only lookup hostname if the results are going to need it.