dnsbl

package
v0.0.0-...-4ee70fb Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// Blacklist is the DNSBL server that gave this result
	Blacklist string
	// Address is the IP address that was searched
	Address string
	// Listed indicates whether or not the IP was on the RBL
	Listed bool
	// RBL lists sometimes add extra information as a TXT record
	// if any info is present, it will be stored here.
	Text string
	// Error represents any error that was encountered (DNS timeout, host not
	// found, etc.) if any
	Error bool
	// ErrorType is the type of error encountered if any
	ErrorType error
}

Result holds the individual IP lookup results for each RBL search

type ResultList

type ResultList struct {
	Listed  bool
	Results []Result
}

func Lookup

func Lookup(dnsblList []string, targetHost string) (r ResultList)

Jump to

Keyboard shortcuts

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