whoareyou

package
v0.0.0-...-71af635 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

README

whoareyou

whoareyou returns dns server IP address, port and transport used. Server IP address is returned in the answer section as either an A or AAAA record.

The port and transport are included in the additional section as a SRV record, transport can be "tcp" or "udp".

._<transport>.qname. 0 IN SRV 0 0 <port> .

Syntax

whoareyou

Examples

.:53 {
    whoareyou
}

When queried for "example.org A", CoreDNS will respond with:

;; QUESTION SECTION:
;example.org.              IN  A

;; ANSWER SECTION:
example.org.            0  IN  A    127.0.0.1

;; ADDITIONAL SECTION:
_udp.example.org.       0  IN  SRV  0 0 53

When queried for "example.org AAAA", CoreDNS will respond with:

;; QUESTION SECTION:
;example.org.              IN  AAAA

;; ANSWER SECTION:
example.org.            0  IN  AAAA   ::1

;; ADDITIONAL SECTION:
_udp.example.org.       0  IN  SRV    0 0 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Whoareyou

type Whoareyou struct {
	Next middleware.Handler
	// contains filtered or unexported fields
}

func (Whoareyou) ServeDNS

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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