DNS resolv.conf
In this example resolv_conf_files.cfg, we specify resolv.conf DNS resolver configuration files--for example, one for /etc, the other for the Postfix copy in /var/spool/postfix/etc. Note how the #include directives incorporate the resolv_conf_common_files.cfg file, thereby allowing us to maintain two separate, but identical, instances of resolv.conf from a single source.
/////////////////////////////////////////////////////////////////////////////// // // resolv_conf_files.cfg // /////////////////////////////////////////////////////////////////////////////// resolv.conf path "/etc/resolv.conf" mode 644 uid =rootuid gid =rootgid #include <files/adm/resolv_conf_common_files.cfg> /////////////////////////////////////////////////////////////////////////////// #if mandrake resolv.conf_postfix path "/var/spool/postfix/etc/resolv.conf" mode 644 uid =rootuid gid =rootgid #include <files/adm/resolv_conf_common_files.cfg> #endif ///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install both resolv.conf files to all systems with the command:
# piktc -iv +F =resolvconf +H all [or: ... -H down]
For more examples, see Samples.