Put quotes around the hostname when setting it in the influxdb configuration.