Set hostname and domain name if -S option used