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 is goinstall'able.
Publishing mDNS records is as simple as importing the mdns page
import ( "net" // needed for net.IP "github.com/davecheney/mdns" )
Then calling one of the publish functions
mdns.PublishA("yourhost.local", 3600, net.IP(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.
This package has been tested on the following platforms
14/10/2011 Initial Release