scitra

package module
v0.0.0-...-950a5e2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 14 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

scitra

Name

scitra - resolves SCION TXT records to SCION-mapped IPv6 addresses

Description

This CoreDNS plugin is a companion to [SCION-IP Address Translators][1] that returns special AAAA addresses (SCION-mapped IP addresses) for host that announce SCION support in a TXT record.

TXT records recognized by this plugin must have the form "scion=," where is a SCION AS and is an IPv4 or IPv6 address.

[1] https://github.com/netsys-lab/scion-ip-translator

Syntax

scitra [prefix PREFIX]
  • prefix PREFIX is an 8 bit long IPv6 prefix in CIDR notation that is used by translators to identify SCION-mapped IPv6 addresses. The default prefix is fc00::/8.

Compilation

Add the following to plugin.cfg and recompile CoreDNS:

# add this line right before cache:cache
scitra:github.com/netsys-lab/coredns-scitra

Example

Forward queries to another DNS server and rewrite SCION addresses.

. {
    forward . 1.1.1.1
    scitra
    cache
}

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scitra

type Scitra struct {
	Next   plugin.Handler
	Prefix byte
}

func (Scitra) Name

func (s Scitra) Name() string

func (Scitra) ServeDNS

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

Jump to

Keyboard shortcuts

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