2

According to Debian's RPi3 image wiki, I should be able to ssh into a Raspberry-Pi, with just the hostname. I shared internet from my Debian laptop, WiFi to the a Raspberry-Pi over Ethernet, but the hostname never resolved.

What kind of settings/configuration do either the client and server or the network need for LAN hostname resolution to work?

What do I need to install on the Pi so that MS-Windows can resolve the Pi's IP address when I want to access a web server hosted on it, for example? I think it's smbclient but I'm not sure.

12
  • 2
    They are not saying it is a given. They are saying if you have a local DHCP+DNS server configured in a certain way, it will work by name. You also have zeroconf ; also DNS configurations for more professional setting. smbclient if for SMB file shares, has nothing to do with it. Also, for a web server, you do not specify what you want to do with it, and whom is getting into it e.g. what is your goal. Commented Jan 5, 2019 at 12:48
  • @RuiFRibeiro, I just need the web server to be accessible over the LAN using its hostname. Commented Jan 5, 2019 at 12:59
  • for how many computers? Commented Jan 5, 2019 at 13:01
  • @RuiFRibeiro, less than 10. It's going be pretty much unmanaged, that's why I'm not considering a DNS which I actually know how to set up. Commented Jan 5, 2019 at 13:17
  • @Oxwivi have you considered using mDNS? Commented Jan 5, 2019 at 13:28

1 Answer 1

2

Enable Link-Local Multicast Name Resolution (LLMNR) on the RPi. Edit /etc/systemd/resolved.conf and set LLMNR=true. Enable and start the systemd service system-resolved: systemctl --now enable systemd-resolved. No DNS server is needed, but name resolution only works on the local net. Make sure there are no duplicate hostnames on the LAN.

4
  • resolved won't conflict with NetworkManager that's managing everything by default right? If it doesn't, I'll just uncomment the LLMNR line. Commented Jan 6, 2019 at 9:01
  • And is there a way to test that LLMNR is functioning as opposed to other methods like Avahi? Commented Jan 6, 2019 at 9:02
  • Try pinging the RPi's hostname from the Windows machine. Commented Jan 6, 2019 at 10:55
  • Well, I set it up in the target LAN. All devices are on 192.168.13.0/24 subnet. Pinging raspberrypi (default Raspbian hostname) or raspberrypi.local yielded no results. Commented Jan 10, 2019 at 7:21

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.