change hostname from example.com to `hostname`