dns

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SUBRE = "(([a-zA-Z0-9]{1}|[_a-zA-Z0-9]{1}[_a-zA-Z0-9-]{0,61}[a-zA-Z0-9]{1})[.]{1})+"

SUBRE is a regular expression that will match on all subdomains once the domain is appended.

Variables

This section is empty.

Functions

func AnySubdomainRegex

func AnySubdomainRegex() *regexp.Regexp

AnySubdomainRegex returns a Regexp object initialized to match any DNS subdomain name.

func CopyString

func CopyString(src string) string

CopyString return a new string variable with the same value as the parameter.

func RemoveAsteriskLabel

func RemoveAsteriskLabel(s string) string

RemoveAsteriskLabel returns the provided DNS name with all asterisk labels removed.

func ReverseString

func ReverseString(s string) string

ReverseString returns the characters of the argument string in reverse order.

func SubdomainRegex

func SubdomainRegex(domain string) *regexp.Regexp

SubdomainRegex returns a Regexp object initialized to match subdomain names that end with the domain provided by the parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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