In your scenario, when a device joins Entra ID, it does not automatically register its hostname in any DNS server, because Entra ID by itself doesn't handle DNS. If you're using on-prem DNS servers, they will still handle DNS registration and resolution. If not, that would need to be handled manually or through a custom solution — such as running a DNS server (e.g., Windows DNS or BIND) on a local device, using Azure Private DNS + DNS Forwarding if traffic routes to Azure, or pushing custom DNS server settings via Intune device configuration profiles.
Note that the DNS name resolution/registration of the DEVICE name, is not essential for the join to be successful. The device simply needs to be able to resolve external names involved in processing the join activity.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin