resolver

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 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

resolver

Name

resolver - fully iterative DNSSEC-enabled resolver based on resolver-lib with support for post quantum cryptography.

Description

CoreDNS supported resolving trough the forward plugin but did not have a dedicated iterative resolver. This resolver plugin adds that functionality. The underlying library has support for DoQ (with 0-RTT) and DoT.

[!NOTE] By default, we replace the standard miekg/dns module with mr-torgue/dns which is PQC-enabled. If you don't want this, remove the replace statement (replace github.com/miekg/dns => github.com/mr-torgue/dns v1.2.1) in go.mod and it should use the default.

[!NOTE] When running go test, the mldsa44 tests will fail, unless the replace statement is activated.

Compilation

This package will always be compiled as part of CoreDNS and not in a standalone way. It will require you to use go get or as a dependency on plugin.cfg.

The manual will have more information about how to configure and extend the server with external plugins.

A simple way to consume this plugin, is by adding the following on plugin.cfg, and recompile it as detailed on coredns.io.

example:github.com/coredns/example

Put this early in the plugin list, so that example is executed before any of the other plugins.

After this you can compile coredns by:

go generate
go build

Or you can instead use make:

make

Syntax

The following options are supported:

resolver {
	timeout [TimeString] (default "1s")
	hints [Filename]     (default "named.root")
	anchor [Filename]    (default "root-anchors.xml")
	udpsize: [Uint]      (default 1232)
    dnsport: [Uint]      (default 53)
    doqport: [Uint]      (default 853)
	dotport: [Uint]      (default 8853)
    clientType [String]  (default "udp")
	nofallback          
	nodnssec            
	notlsverify          
	nocache     
	notlscache         
	nopqcmode            
	log 
}

Metrics

TBD

Ready

This plugin reports readiness to the ready plugin. It will be immediately ready.

Examples

TBD

Also See

See the manual.

Documentation

Overview

Package example is a CoreDNS plugin that prints "example" to stdout on every packet received.

It serves as an example CoreDNS plugin with numerous code comments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	R      *resolver.Resolver
	Next   plugin.Handler
	DNSSEC bool
	// contains filtered or unexported fields
}

Example is an example plugin to show how to write a plugin.

func (Resolver) Name

func (e Resolver) Name() string

Name implements the Handler interface.

func (Resolver) Ready

func (e Resolver) Ready() bool

Ready implements the ready.Readiness interface, once this flips to true CoreDNS assumes this plugin is ready for queries; it is not checked again.

func (Resolver) ServeDNS

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

ServeDNS implements the plugin.Handler interface. This method gets called when example is used in a Server.

Jump to

Keyboard shortcuts

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