/etc/hosts file.
/etc/hosts file.
(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.
(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.
(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.
(hostname {:keys [fqdn]})Get the hostname as reported on the node.
Get the hostname as reported on the node.
(resolve-dns hostname)Get the ip for a hostname.
Get the ip for a hostname.
(reverse-dns ip)Get the hostname reported for the specified ip.
Get the hostname reported for the specified ip.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |