The problem we’re trying to fix today sounds like a simple one, but requires a package to accomplish. Say you have an Ubuntu Linux server you just set up with a hostname of Ubuntu. Assuming your LAN domain is .local, you’d like to access services on this domain by going to to https://ubuntu.local.
If you’re unable to do this, you can simply use the Avahi package. To install this, simply run the following:
sudo apt install avahi-daemon
Once installed, you can verify that it’s running:
sudo systemctl status avahi-daemon.service
This should output something like the following:

I blurred out my hostname but this is where you should see your server’s hostname.