1) Log into your OPNsense installation with your credentials
2) Navigate to System > Settings > General
3) Enter your desired hostname
Do not qualify 'firewall.yourdomain.co.uk' in the hostname box. To achieve a hostname of firewall.yourdomain.co.uk, enter 'firewall' into the hostname field, and 'yourdomain.co.uk' into the Domain field.