revdns

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package revdns resolves remote IPs to hostnames via reverse DNS (PTR) as a fallback when netscope never saw a forward DNS answer — e.g. connections that predate the daemon, or encrypted DNS (DoH/DoT). Lookups run asynchronously off the capture hot path, are de-duplicated and rate-limited, and their results are written into the shared dns cache so the regular lookup path picks them up.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver performs background PTR lookups, caching results in a dnscache.Cache.

func New

func New(cache *dnscache.Cache, workers int) *Resolver

New starts a Resolver with the given number of workers writing into cache.

func (*Resolver) Enqueue

func (r *Resolver) Enqueue(ip string)

Enqueue requests a PTR lookup for ip if it is a public address we have not recently attempted. Non-blocking; drops the request if the queue is full.

Jump to

Keyboard shortcuts

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