In this example resolv_conf_common_files.cfg, we specify some common elements for all instances of the resolv.conf DNS resolver configuration file. This file is #included by the higher-level resolv_conf_files.cfg file. Note how, by means of the '#if ... #endif' directives, we customize entries for different network situations.
///////////////////////////////////////////////////////////////////////////////
//
// resolv_conf_common_files.cfg
//
///////////////////////////////////////////////////////////////////////////////
domain pikt.org
nameserver 192.168.3.50
#if earthlink
nameserver 11.22.33.44
nameserver 44.33.22.11
search earthlink.net
#else
# if ! ottawa
nameserver 123.100.222.3
nameserver 123.100.111.3
# endif
#endif
///////////////////////////////////////////////////////////////////////////////
[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.
|