ytsarev / coredns-experiments

coredns plugin creation playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onlyone

Name

onlyone - Randomly chooses a single RR of each specified type in the response.

Description

There can be only one. If there are multiple records of the same type in the response, this plugin will strip out all but one of them. This can be useful, for example, to replace the loadbalance plugin if Happy Eyeballs sorting is getting in the way.

Syntax

onlyone [ZONES ...] {
  types TYPES
}
  • ZONES is the zones to which this plugin applies. If omitted, they default to ..
  • TYPES is a list of DNS types to which this plugin applies. If types is omitted, it will apply to A and AAAA records only.

Examples

onlyone example.com {
  types A SRV AAAA
}

About

coredns plugin creation playground


Languages

Language:Go 100.0%