dnsnameresolver

package module
v0.0.0-...-91dd227 Latest Latest
Warning

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

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

DNSNameResolver

This is a CoreDNS plugin that works together with Kube-OVN to implement the FQDN Egress Firewall in Network Policy API.

The origin code comes from coredns-ocp-dnsnameresolver with following modifications:

  • Change DNSNameResolver scope from namespaced to cluster to better implement Network Policy API.
  • Remove DNS to IP mapping, using listers to simplify the logical.
  • Remove plugin args.
  • Update the build process to use community base images.
  • Update dependencies.

Documentation

Index

Constants

View Source
const (
	ConditionDegraded = "Degraded"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSNameResolver

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

DNSNameResolver is a plugin that looks up responses from other plugins and updates the status of DNSNameResolver objects.

func New

func New() *DNSNameResolver

New returns an initialized DNSNameResolver with default settings.

func (*DNSNameResolver) Name

func (resolver *DNSNameResolver) Name() string

Name implements the Handler interface.

func (*DNSNameResolver) ServeDNS

func (resolver *DNSNameResolver) 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
⌂ 换网址