Add special-case back for 'localhost' since not all resolvers can resolve it.