I can pull up cockpit by using the hostname in the web browsers url, but samba doesn’t point to the server by name. Only IP address pulls it up.

I don’t want to risk installing conflicting stuff but I’m not finding a lot of detail here. Does fedora have something for this included? Does it use avahi? Systemd-resolved? Smoke signals?