Can't understand how to share folders as nfs shares

As far as using the hostname

From my experience here with DietPi version 9.02 you would need to run the command

dietpi-software install 152

This will install the avahi-daemon, you may get several errors on install but it still works after a reboot. You can check on the service with

systemctl status avahi-daemon

Here the default hostname was discoverable from macos as DietPi.local