//
pkg.gl
Category
github.com/admpub/iptables_parser
validate_dns
package
0.0.1
Repository:
https://github.com/admpub/iptables_parser.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
1
Files
46 SLOC
#
Functions
IsDNS
IsDNS returns true, if given string resembles a valid DNS name.
IsDNSLabel
IsDNSLabel returns true when the given string resembles a valid DNS label e.g.
IsDNSOrHostname
IsDNSOrHostname returns true, if given string is a valid DNS name or hostname.