1

Raspberry pi has a feature where when it's connected to a LAN, you can find its IP using raspberrypi.local (source). It mentions multicast DNS.

I'd like to do this for my own linux devices on LAN, giving them names of my choice (e.g. "xyz.local") how can it be achieved?

1 Answers1

2

rPI uses the Avahi application for mDNS. You would need to install that on your devices.

Ron Trunk
  • 2,149
  • 1
  • 10
  • 19
  • Perfect. After setting up configuration as directed in https://wiki.archlinux.org/index.php/avahi#Configuring_mDNS_for_custom_TLD, it makes the machine available at `echo $(hostname).local`! – Peeyush Kushwaha Oct 27 '20 at 14:34