coredns_omada

package module
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

coredns-omada-plugin

coredns_omada is a CoreDNS plugin which resolves local DNS addresses for clients on TP-Link Omada SDN networks. It uses the omada API to periodically get a list of client addresses.

Pre-built docker images

Docker container images are now being published to the GitHub Container Registry under the following name: ghcr.io/dougbw/coredns_omada

Version chart

Omada Controller version Reccomended coredns_omada version
5.12.x v1.5.0 or newer
5.9.x v1.4.2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Omada

type Omada struct {
	Next plugin.Handler
	// contains filtered or unexported fields
}

Omada is the core struct of the omada plugin.

func NewOmada

func NewOmada(ctx context.Context, url string, u string, p string) (*Omada, error)

func (*Omada) Name

func (o *Omada) Name() string

func (*Omada) ServeDNS

func (o *Omada) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS implements the plugin.Handler interface.

Jump to

Keyboard shortcuts

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