mdns /

Filename Size Date modified Message
1.5 KB
117 B
1.3 KB
6.1 KB


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


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        

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.


Tested Platforms

This package has been tested on the following platforms

  • linux/arm
  • linux/386
  • darwin/386


14/10/2011 Initial Release