prefer target.hostname
over target.host
#235
Merged
target.hostname
over target.host
#235