Buy GNU books!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
/etc/resolv.conf specifies the default nameserver for
each host, as well as the local domain name. This file can also contain
other information, but these are the only two things cfengine currently
cares about. In specifying nameservers you should use the dotted
numerical form of the IP addresses since your system may not understand
the text form if it is not correctly configured. You may list as many
nameservers as you wish, with the default server at the top of the list.
The resolver normally ignores entries if you add more than three. The
resolve: mygroup:: 22.214.171.124 126.96.36.199 188.8.131.52
declares a list of nameservers for hosts in the group or class
mygroup. When you add the
resolve command to the
actionsequence, this declaration together with the
variable (set here to
uio.no) results in a
/etc/resolv.conf file of the form:
domain uio.no nameserver 184.108.40.206 nameserver 220.127.116.11 nameserver 18.104.22.168
Note that the
resolve action does not delete anything from the
/etc/resolv.conf. It adds nameservers which do not
previously exist and reorders the lines of servers which do exist.
As of version 1.3.11, you may use a quoted string to add non-nameserver lines to this file. For example:
resolve: mygroup:: 22.214.171.124 126.96.36.199 "# Comment line" "order bind, files"
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|