2

My impression is that Ubuntu 22.04 comes with avahi preinstalled. How do I most easily check whether the machine I'm using has a .local address, and if so, what that address is? I'm asking under the assumption that the common case is a single .local address for a machine, which is the case I'm interested in.

In macOS, for instance, I would open system settings and look at the Network Settings panel which would tell me the address, which by default is automatically derived from the device's name. I can also customize it there.

The closest I've found in Ubuntu is About in Settings which tells me the Device Name, but not any potentially derived .local address.


Update

Requested information:

libnss-mdns is installed.

$ resolvectl status
Global
       Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (enp3s0f2) Current Scopes: none Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (wlp2s0) Current Scopes: DNS Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Current DNS Server: [...] DNS Servers: [...] DNS Domain: domain.name

Andreas
  • 1,048
  • 1
  • 11
  • 31

1 Answers1

0

The easiest way I've discovered so far is to enter the Share settings in the Settings app and select Remote Desktop. If there's a .local address it will be listed in the Remote Desktop Address field, e.g: ms-rd://k55a.local. I believe this should work out of the box, without having to install anything.

Or, if you have ssh installed, you can select Remote Login instead and it'll underline the ssh command for connecting to the machine using its .local address, e.g: ssh k55a.local

Andreas
  • 1,048
  • 1
  • 11
  • 31