mdns

package
v0.0.0-...-0a892ff Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: Apache-2.0, Apache-2.0 Imports: 12 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

func GetPrimaryInterface

func GetPrimaryInterface(ctx context.Context, resolver *resolve1.Manager) int32

Types

type MDNS

type MDNS struct {
	Next     plugin.Handler
	Resolver *resolve1.Manager
	Ifc      int32
}

func (MDNS) AddARecord

func (m MDNS) AddARecord(msg *dns.Msg, state *request.Request, name string, addresses []struct {
	V0 int32
	V1 int32
	V2 []byte
}) bool

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)

Directories

Path Synopsis
Code generated by dbus-codegen-go DO NOT EDIT.
Code generated by dbus-codegen-go DO NOT EDIT.

Jump to

Keyboard shortcuts

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