Documentation
¶
Overview ¶
Package nameshift is a CoreDNS plugin that prints "nameshift" to stdout on every packet received. It serves as an nameshift CoreDNS plugin with numerous code comments.
Index ¶
Constants ¶
View Source
const ( DefaultRedisAddress = "127.0.0.1:6379" DefaultRedisUsername = "default" DefaultTTL = uint32(900) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nameshift ¶
type Nameshift struct {
Next plugin.Handler
Client *redis.Client
Prefix string
AddNs3 bool
Nameservers []string
TTL uint32
}
Nameshift is an nameshift plugin to show how to write a plugin.
Click to show internal directories.
Click to hide internal directories.