4 ms·
I have a couple of Raspberry Pis and Onion Omegas on my LAN and a few Linux and BSD VMs on my MacBook (NATed). They can mostly ssh amongst themselves, but the
by sigjuice 7y ago
I have a couple of Raspberry Pis and Onion Omegas on my LAN and a few Linux and BSD VMs on my MacBook (NATed). They can mostly ssh amongst themselves, but the biggest problem I have is that I haven't been able to come up with a satisfactory DNS/mDNS setup. I just don't like fiddling with IP addresses. Any suggestions?
- lonelappde 7y agoI thought the point of mdns is that it just works with zero configuration. Other alternatives include running pihole on one machine (or all machines for backup), or giving them static IPs in your DHCP server and then copying a hosts file to them all.
- sigjuice 7y agoA couple of my systems have resolvers that can't resolve .local names (OpenBSD, OpenWrt/musl)
- yjftsjthsd-h 7y agoDoes Avahi not work there? Implied to be available: http://www.idoru.be/notes/how-to-configure-rendezvousbonjourzeroconf-in-openbsd-with-avahi-deamon/ http://www.idoru.be/notes/how-to-configure-rendezvousbonjour... https://openwrt.org/docs/guide-user/network/zeroconfig/zeroconf https://openwrt.org/docs/guide-user/network/zeroconfig/zeroc...
- yjftsjthsd-h 7y agoOh yes, when it works it doesn't need any configuration:) (Well, aside initial setup, but that was years ago on Arch so it might be easier now...) But my personal experience was that it didn't always work, and then it was "fun" to troubleshoot. But seriously, do take this with a grain of salt; I abandoned it years ago, so it might "just work" now.
- p1necone 7y agoI've always just given static local IPs to everything in my router settings - usually it lets you map MAC addresses to desired IPs. Then you pass traffic on certain ports to certain IPs if you want to be able to access anything from outside.
- ahyattdev 7y agoYou can assign them static IPs in DHCP, then run your own DNS server that returns local IPs for those hosts. Or bridge those VMs on your macbook so it's a flat network, then use Avahi for mDNS so they all have .locals.
- rubatuga 7y agoRunning your own DNS is the best option, I use dnsmasq, which functions as both a DHCP and DNS server. Any DHCP requests from the client also contains a hostname, which dnsmasq then stores in its DNS table. So if your hostname is `macbook-air`, dnsmasq will resolve that to the DHCP IP address assignment.