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 downsys]
[For more examples, see Samples.]
Home |
FAQ |
News |
Intro |
Samples |
Tutorial |
Reference |
Software |
Authors |
Licensing |
SiteSearch
Links |
SiteIndex |
Pikt-Users |
Pikt-Workers |
Contribute |
ContactUs |
Top of Page
Page best viewed at 1024x768.
Page last updated 2005-06-22.
This site is
PIKT®
powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund. All rights reserved.
|