Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!



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

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.