iface

package module
v0.0.0-...-f4140cd Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 10 Imported by: 0

README

iface

Name

iface - Returns address of network interface associated with provided name

Description

The plugin looks up a network interface using the provided name and the configured address for that interface if it exists.

Note: In order to add a new plugin, an additional step of make gen is needed. Therefore, to build the coredns with demo plugin the following should be used:

docker run -it --rm -v $PWD:/v -w /v golang:1.16 sh -c 'make gen && make'

Syntax

iface [TLD]

Defaults:

  • TLD: iface - The domain to lookup interfaces as a subdomain of

Also See

See the manual.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFace

type IFace struct {
	TLD  string
	Next plugin.Handler
}

func (IFace) Name

func (p IFace) Name() string

Name implements the Handler interface.

func (IFace) ServeDNS

func (p IFace) 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