3 ms·
I usually use zeroconf/avahi for that sort of thing.
by fs111 12y ago
I usually use zeroconf/avahi for that sort of thing.
- klapinat0r 12y agoWould you mind to elaborate (give an example)? I've toyed with bonjour spoofing before, but I always found querying was incredibly difficult, using dns-sd, e.g.: HOST=`(dns-sd -L "Name of Machine" _http._tcp local | grep -o "at .* (interface" | grep -o "[a-zA-Z\-]\{1,\}\.local" & ); sleep 1 && pkill -f dns-sq` Obviously tailored specifically for that project, but I hope you catch my drift. And add to that the port lookup. I'm fairly certain I'm not using it as you do, so would you mind giving an example of how your use MDNS for local dev testing?