validate_dns

package
v0.0.0-...-3d9e685 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDNS

func IsDNS(s string) bool

IsDNS returns true, if given string resembles a valid DNS name. "example.com" will yield true, but not "ex_mple.com" or "example"

func IsDNSLabel

func IsDNSLabel(l string) bool

IsDNSLabel returns true when the given string resembles a valid DNS label e.g. "de", but not "-de"

func IsDNSOrHostname

func IsDNSOrHostname(s string) bool

IsDNSOrHostname returns true, if given string is a valid DNS name or hostname.

Types

This section is empty.

Jump to

Keyboard shortcuts

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