适用于 Go 的多播 DNS 库
This package allows Go processes to publish multicast DNS style records onto their local network segment. For more information about mDNS, and it's closely related cousin, Zeroconf, please visit http://www.multicastdns.org/.
Thanks to Brian Ketelsen and Miek Gieben for their feedback and suggestions. This package builds on Miek's fantastic godns library and would not have been possible without it.
This package can be installed using:
go get github.com/davecheney/mdnsFor development, this package is developed with John Asmuths excellent gb utility.
Publishing mDNS records is simple
import "github.com/davecheney/mdns"
mdns.Publish("yourhost.local 60 IN A 192.168.1.100")This places an A record into the internal zone file. Broadcast mDNS queries that match records in the internal zone file are responded to automatically. Other records types are supported, check the godoc for more information.
go doc github.com/davecheney/mdnsThis package has been tested on the following platforms
Counters for zone queries and entries, as well as connector questions and responses are instrumented via gmx.
gmxc -p $(pgrep mdns-publisher) mdns | sort
mdns.connector.questions: 3
mdns.connector.responses: 3
mdns.zone.local.entries: 5
mdns.zone.local.queries: 1212/02/2012
07/02/2012
14/10/2011 Initial Release
暂无开放 Issues,或尚未同步最近议题。