umbrella

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 11 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

coredns-umbrella

Lines of code Tests Release

CoreDNS-Umbrella is a CoreDNS plugin for forwarding client identity information to Cisco Umbrella. It adds Cisco's EDNS0 options to a query.

Corefile

. {
    umbrella organization_id 12345678 device_id 0123456789abcdef
    forward . 208.67.222.222 208.67.220.220
}

Wire format

Cisco Umbrella wire-format documentation

The option payload is 28 bytes for an IPv4 client and 40 bytes for an IPv6 client:

Bytes Meaning
4f 44 4e 53 Magic value ODNS
01 Version
00 Flags
00 08 + 4 bytes Organization ID, unsigned and big-endian
00 10 + 4 bytes Client IPv4 address, for an IPv4 client
00 20 + 16 bytes Client IPv6 address, for an IPv6 client
00 40 + 8 bytes 8-byte device ID

Each payload contains exactly one client address field matching the connecting client's address family.

Register plugin

Add the following entry before forward in CoreDNS's plugin.cfg:

umbrella:github.com/xdkr/coredns-umbrella
forward:forward

Build locally:

make build

Testing

Run the Go test suite:

make test

Run the IPv4 and IPv6 end-to-end profiles. Each uses a DNS client, this plugin compiled into CoreDNS, and a validating fake Cisco receiver:

make test-e2e

Run either profile separately with make test-e2e-ipv4 or make test-e2e-ipv6.

See e2e/README.md for the validations performed by the Docker harness.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Umbrella

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

func (*Umbrella) Name

func (u *Umbrella) Name() string

func (*Umbrella) ServeDNS

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

Directories

Path Synopsis
e2e
client command
fakecisco command

Jump to

Keyboard shortcuts

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