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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址