closestRR

package module
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL