Documentation ¶
Overview ¶
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 'log:log'
The plugin is configured in the Corefile, inside the desired definition block. The topic and address arguments are required.
For example:
. { 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'
Index ¶
Constants ¶
View Source
const CoreDNSPluginName = "nspub"
CoreDNSPluginName is the canonical name for this plugin.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct {
Name string
}
Header is the simplified structure for deserialization.
Click to show internal directories.
Click to hide internal directories.