Not appending domain names to host when provisioning

Problem:
Even though the setting “Append domain names to the host” is set to “Yes” under the “General” Tab, this is not occurring when provisioning.
Expected outcome:
appending domain name to host during provisioning.
Foreman and Proxy versions:
3.6/4.8
Foreman and Proxy plugin versions:
foreman-tasks - 7.2.1
foreman_ansible - 11.2.0
foreman_openscap - 6.0.0
foreman_remote_execution - 9.1.0
foreman_templates - 9.3.3
katello - 4.8.4
Distribution and version:

Other relevant data:
Using external Windows Smart Proxy for DNS and DHCP services.

I figured out the issue. The VMware Template/Image being used, had certificate issues. I went through the steps to finish a VMware Template to use for Provisioning, and after that the issue was resolved, and VMs were finally getting the domain appended.