Adding parameter to set hostname or hostname lookup method.

This lets us manually manage the hostname/method of the collector.