package dns
import "github.com/docker/libnetwork/resolvconf/dns"
Index ¶
Constants ¶
const IPLocalhost = `((127\.([0-9]{1,3}\.){2}[0-9]{1,3})|(::1)$)`
IPLocalhost is a regex patter for localhost IP address range.
Functions ¶
func IsLocalhost ¶
IsLocalhost returns true if ip matches the localhost IP regular expression. Used for determining if nameserver settings are being passed which are localhost addresses
Source Files ¶
- Version
- v0.8.0-dev.1
- Published
- Apr 16, 2016
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 minutes ago –
Tools for package owners.