docker: Index | Files

package dns

import ""


Package Files



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

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

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

IPv4Localhost is a regex pattern for IPv4 localhost address range.

func IsIPv4Localhost Uses

func IsIPv4Localhost(ip string) bool

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

func IsLocalhost Uses

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

Package dns imports 1 packages (graph). Updated 2017-03-29. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).