Use the right field when resolving an ip vs a hostname