Not sure if this helps, as I’m not 100% certain how I set this up (it was too long ago), but by giving my rpi a hostname I can simply use ‘pizero.local’ from my desktop machine. I don’t run a DNS server per se but maybe look into that kind of dhcp / dns option?