parser

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package parser is a package for parsing massdns output format. Massdns writes output in a dig style format containing complete information about the resolved names.

Only a subset of information, more specifically Name and IP address is parsed from the output. It correctly handles CNAME record entries outputting the first name and the subsequent A records. NS records are ignored in the current implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile added in v1.1.0

func ParseFile(filename string, onResult OnResultFN) error

func ParseReader added in v1.1.0

func ParseReader(reader io.Reader, onResult OnResultFN) error

Parse parses the massdns output returning the found domain and ip pair to a onResult function.

Types

type OnResultFN added in v1.1.0

type OnResultFN func(domain string, ip []string) error

Jump to

Keyboard shortcuts

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