@FernandoLeitzelar-0895 Apologies for the delay in response.
One of the way to avoid the problem of setting hostname manually is to use Azure DNS. You can create an azure DNS entry for specific private network (with entries which you are creating on the host directly) and then associate the azure Web jobs to this private network.
Using this mechanism, you can avoid creating DNS entries and manage the entries from central place.
Web jobs when run in these private network would use the DNS entries configured to fetch the DNS mapping. You can read more about azure DNS here
Hope this helps.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.