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.