Allow using FQDN instead of hostname when creating a device.