1CDIST-TYPE__HOSTS(7)                 cdist                CDIST-TYPE__HOSTS(7)
2
3
4

NAME

6       cdist-type__hosts - manage entries in /etc/hosts
7

DESCRIPTION

9       Add or remove entries from /etc/hosts file.
10

OPTIONAL PARAMETERS

12       state  If  state  is present, make object_id resolve to ip. If state is
13              absent, object_id will no longer resolve via /etc/hosts,  if  it
14              was previously configured with this type.  Manually inserted en‐
15              tries are unaffected.
16
17       ip     IP address, to which  hostname  (=object_id)  must  resolve.  If
18              state  is  present, this parameter is mandatory, if state is ab‐
19              sent, this parameter is silently ignored.
20
21       alias  An alias for the hostname.  This parameter can be specified mul‐
22              tiple times (once per alias).
23

EXAMPLES

25          # Now `funny' resolves to 192.168.1.76,
26          __hosts funny --ip 192.168.1.76
27          # and `happy' no longer resolve via /etc/hosts if it was
28          # previously configured via __hosts.
29          __hosts happy --state absent
30
31          __hosts srv1.example.com --ip 192.168.0.42 --alias srv1
32

SEE ALSO

34       hosts(5)
35

AUTHORS

37       Dmitry Bogatov <KAction@gnu.org>
38       Dennis Camera <dennis.camera--@--ssrq-sds-fds.ch>
39
40

COPYING

42       Copyright  (C)  2015-2016  Dmitry Bogatov, 2019 Dennis Camera.  You can
43       redistribute it and/or modify it under the terms  of  the  GNU  General
44       Public  License  as  published  by the Free Software Foundation, either
45       version 3 of the License, or (at your option) any later version.
46
48       ungleich GmbH 2020
49
50
51
52
536.9.6                            Apr 20, 2021             CDIST-TYPE__HOSTS(7)
Impressum