closestRR
Name
closestRR - chooses the closest A record among recived multiple.
Description
It uses /23 to calculate the network addres for the requestor IP and checks if there is an IP in the DNS anwser which fits in that subnet.
Compilation
This package will always be compiled as part of CoreDNS and not in a standalone way. It will require you to use go get
or as a dependency on plugin.cfg.
The manual will have more information about how to configure and extend the server with external plugins.
A simple way to consume this plugin, is by adding the following on plugin.cfg, and recompile it as detailed on coredns.io.
closestRR:github.com/alpaca4j/closestAaddress/
After this you can compile coredns by:
go generate
go build
Or you can instead use make:
make
Syntax
closestRR [ZONES...]
Ready
This plugin reports readiness to the ready plugin. It will be immediately ready.
Examples
. {
forward . 9.9.9.9
closestRR example.org example2.org
}
Also See
See the manual.