Liking cljdoc? Tell your friends :D

pallet.crate.etc-hosts

/etc/hosts file.

/etc/hosts file.
raw docstring

add-hostclj

(add-host ip-address names)

Declare a host entry. Names should be a sequence of names.

Declare a host entry. Names should be a sequence of names.
sourceraw docstring

add-hostsclj

(add-hosts hosts-map)

Add a map of ip address to a sequence of hostname/aliases, to the host file settings.

Add a map of ip address to a sequence of hostname/aliases, to the host file
settings.
sourceraw docstring

format-hostsclj

(format-hosts)
source

host-entryclj

(host-entry {:keys [use-hostname use-private-ip]
             :or {use-hostname true use-private-ip true}})

Get a host entry for the current node. Options all default to true and hostname takes priority over target-name, and private-ip over primary-ip.

Get a host entry for the current node. Options all default to true
and hostname takes priority over target-name, and private-ip over
primary-ip.
sourceraw docstring

hostnameclj

(hostname {:keys [fqdn]})

Get the hostname as reported on the node.

Get the hostname as reported on the node.
sourceraw docstring

hostsclj

(hosts)

Writes the hosts files

Writes the hosts files
sourceraw docstring

ipv6-aliasesclj

source

localhostclj

source

localhost-hostnameclj

(localhost-hostname & node-names)
source

merge-hostsclj

(merge-hosts & ms)
source

resolve-dnsclj

(resolve-dns hostname)

Get the ip for a hostname.

Get the ip for a hostname.
sourceraw docstring

reverse-dnsclj

(reverse-dns ip)

Get the hostname reported for the specified ip.

Get the hostname reported for the specified ip.
sourceraw docstring

set-hostnameclj

(set-hostname & {:keys [update-etc-hosts] :or {update-etc-hosts true}})

Set the hostname on a node. Note that sudo may stop working if the hostname is not in /etc/hosts.

Set the hostname on a node. Note that sudo may stop working if the
hostname is not in /etc/hosts.
sourceraw docstring

set-hostname*clj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close