dns

package
v1.4.2-stable2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 1 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.

Documentation

Index

Constants

View Source
const IPLocalhost = `((127\.([0-9]{1,3}\.){2}[0-9]{1,3})|(::1)$)`

IPLocalhost is a regex pattern for IPv4 or IPv6 loopback range.

View Source
const IPv4Localhost = `(127\.([0-9]{1,3}\.){2}[0-9]{1,3})`

IPv4Localhost is a regex pattern for IPv4 localhost address range.

Variables

This section is empty.

Functions

func IsIPv4Localhost

func IsIPv4Localhost(ip string) bool

IsIPv4Localhost returns true if ip matches the IPv4 localhost regular expression.

func IsLocalhost

func IsLocalhost(ip string) bool

IsLocalhost returns true if ip matches the localhost IP regular expression. Used for determining if nameserver settings are being passed which are localhost addresses

Types

This section is empty.

Jump to

Keyboard shortcuts

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