PIKT

Samples: DNS resolv.conf

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


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.

Computer Books at Amazon.com

DNS for Dummies
DNS for Dummies

Linux iptables Pocket Reference
Linux iptables Pocket Reference

The Networking CD Bookshelf
The Networking CD Bookshelf

The Best Damn Firewall Book Period
The Best Damn Firewall Book Period

Aggressive Network Self-Defense
Aggressive Network Self-Defense