Skip to content

jw4/nspub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nspub

Package nspub provides a CoreDNS plugin to publish successful DNS lookups to NSQ.

To use this plugin, CoreDNS must be compiled with this plugin by adding nspub:jw4.us/nspub to the plugins.cfg file, at the desired level. If in doubt, put it right before the line that has log:log.

The plugin is configured in the Corefile, inside the desired definition block. The topic and address arguments are required.

Example Corefile:

  . {
    whoami
    nspub <topic> <address>
  }

Where <topic> is whatever the NSQ topic name should be, and <address> is the NSQ TCP address, like 10.0.0.1:4150.