closestRR

package module
v0.0.2 Latest Latest
Warning

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

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

README

closestRR - COREDNS plugin

Name

closestRR - if there are multiple A records in a response, the plugin will return only those which fit inside the subnet calculated from requestors IP/23. If non of them fit, it returns all records.

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/closestRR/

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