The mqtthost setting type was still set to ipaddress. It looked like support for hostname had been added so I changed it to text and it works great.