Discover Packages
github.com/slok/docker
pkg
etchosts
package
Version:
v1.4.2-0...-9c5635a
Opens a new window with list of versions in this module.
Published: May 17, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Build function
path is path to host file string required
IP, hostname, and domainname set main record leave empty for no master record
extraContent is an array of extra host records.
Update all IP addresses where hostname matches.
path is path to host file
IP is new IP address
hostname is hostname to search for to replace IP
Structure for a single host record
Writes record to file and returns bytes written or error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.