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]

Open Hand For more examples, see Samples.

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-09-06.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
named.conf
config file