Skip to content

Instantly share code, notes, and snippets.

@sseltzer
Created December 22, 2016 17:43
Show Gist options
  • Save sseltzer/40d271fbc30acb7f2464783f18eb453b to your computer and use it in GitHub Desktop.
Save sseltzer/40d271fbc30acb7f2464783f18eb453b to your computer and use it in GitHub Desktop.
Steps:
sudo nano /etc/hostname
(Default is "raspberrypi", just set this to what you want.)
sudo apt-get install avahi-daemon
sudo init 6
Upon restart:
<hostname>.local now resolves to your pi.
Configuration is located here if you want to make changes:
/etc/avahi
Source:
http://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/
@sseltzer
Copy link
Author

Just a note. There is a limitation in Android Chrome with mDNS, this domain name will not resolve. The explanation is long, but basically it does not support zero conf protocols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment