HI Dave, you weren't wrong in IRC today when you told me that it was kindof broken. I'd love to help you pick this library up, as I'm a big fan of Multicast DNS. If I can help, I'd love to.
I think Some interface such as mdns.AdvertiseService("192.168.150.40", 22, "My Awesome Service") (ignoring for now, how we'd specify what kind of service it is) would be amazing.
I've forked the repository, and will try and diagnose, and cure my present failure, which is:
$ GOPATH=$(pwd) go run main.go
Success.. listening: 0.0.0.0:49434
Published MDNS: stora.local. 60 IN A 192.168.1.200
Published MDNS: 200.1.168.192.in-addr.arpa. 60 IN PTR stora.local.
Published MDNS: _ssh._tcp.local. 60 IN PTR stora._ssh._tcp.local.
Published MDNS: stora._ssh._tcp.local. 60 IN SRV 0 0 22 stora.local.
Published MDNS: stora._ssh._tcp.local. 60 IN TXT ""
Published MDNS: _service._dns-sd._udp.local. 60 IN PTR _ssh._tcp.local.
2013/07/17 19:46:40 Cannot send: write udp6: no route to host
exit status 1
(more or less a verbatim copy from your example, except in a perfect world my service is a pure line-wise TCP socket service, so _ssh is unsuitable, and I'm on a random port every time I start)
When I come up with something useful, I'll send you a pull request.
Update, the problem comes when doing dns-sd -B stora.local. . or using the Bonjour Browser on mac, probably it should tolerate when clients go away. So at least I have something to target fixing now.
HI Dave, you weren't wrong in IRC today when you told me that it was kindof broken. I'd love to help you pick this library up, as I'm a big fan of Multicast DNS. If I can help, I'd love to.
I think Some interface such as
mdns.AdvertiseService("192.168.150.40", 22, "My Awesome Service")
(ignoring for now, how we'd specify what kind of service it is) would be amazing.I've forked the repository, and will try and diagnose, and cure my present failure, which is:
(more or less a verbatim copy from your example, except in a perfect world my service is a pure line-wise TCP socket service, so
_ssh
is unsuitable, and I'm on a random port every time I start)When I come up with something useful, I'll send you a pull request.