mdns

package
v0.0.0-...-4d5642a Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

README

mDNS

Name

mDNS - CoreDNS plugin that reads mDNS records from the local network and responds to queries based on those records.

Description

Useful for providing mDNS records to non-mDNS-aware applications by making them accessible through a standard DNS server.

Syntax

mdns

Examples

As a prerequisite to using this plugin, there must be systems on the local network broadcasting mDNS records.

Specify the domain for the records.

.local {
	mdns
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MDNS

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

func (MDNS) AddARecord

func (m MDNS) AddARecord(msg *dns.Msg, state *request.Request, hosts map[string]*zeroconf.ServiceEntry, name string) bool

func (*MDNS) BrowseMDNS

func (m *MDNS) BrowseMDNS()

func (MDNS) Name

func (m MDNS) Name() string

func (MDNS) ServeDNS

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

Jump to

Keyboard shortcuts

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