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

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

Source Files

resolvconf.go

Version
v0.7.0-dev.8
Published
Mar 16, 2016
Platform
js/wasm
Imports
1 packages
Last checked
2 hours ago

Tools for package owners.