DNS resolv.conf

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
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 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
network
service test
macros