ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzab6_5.4.0.1/cenviron.htm

109 lines
6.7 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Environment variables" />
<meta name="abstract" content="You can use environment variables to override default initialization of resolver functions." />
<meta name="description" content="You can use environment variables to override default initialization of resolver functions." />
<meta name="DC.Relation" scheme="URI" content="dns.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/resini.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/resninit.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/resqry.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="cenviron" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Environment variables</title>
</head>
<body id="cenviron"><a name="cenviron"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Environment variables</h1>
<div><p>You can use environment variables to override default initialization
of resolver functions.</p>
<div class="section"><p>Environment variables are only checked after a successful call
to <span class="apiname">res_init()</span> or<span class="apiname"> res_ninit()</span>. So if
the structure has been manually initialized, environment variables are ignored.
Also note that the structure is only initialized once so later changes to
the environment variables are ignored. </p>
</div>
<div class="section"><div class="note"><span class="notetitle">Note:</span> The name of the environment variable must be capitalized. The
string value might be mixed case. Japanese systems using CCSID 290 should
use uppercase characters and numbers only in both environment variables names
and values. The list contains the descriptions of environment variables that
can be used with the <span class="apiname">res_init()</span> and <span class="apiname"> res_ninit()</span> APIs.</div>
</div>
<div class="section"><h4 class="sectiontitle">LOCALDOMAIN</h4><p> Set this environment variable to a
space-separated list of up to six search domains with a total of 256 characters
(including spaces). This overrides the configured search list (struct state.defdname
and struct state.dnsrch). If a search list is specified, the default local
domain is not used on queries. </p>
</div>
<div class="section"><h4 class="sectiontitle">RES_OPTIONS </h4><p>The RES_OPTIONS environment
variable allows certain internal resolver variables to be modified. The environment
variable can be set to one or more of the following space-separated options:</p>
<ul><li><strong>NDOTS: n</strong> Sets a threshold for the number of dots
that must appear in a name given to <span class="apiname">res_query()</span> before
an initial absolute query is made. The default for n is 1, meaning that if
there are any dots in a name, the name is tried first as an absolute name
before any search list elements are appended to it. </li>
<li><strong>TIMEOUT: n</strong> Sets the amount of time (in seconds)
that the resolver waits for a response from a remote name server before giving
up and trying the query again.</li>
<li><strong>ATTEMPTS: n</strong> Sets the number of queries that the
resolver sends to a given nameserver before giving up and trying the next
listed name server. </li>
<li><strong>ROTATE:</strong> Sets RES_ROTATE in _res.options, which rotates the selection
of nameservers from among those listed. This has the effect of spreading the
query load among all listed servers, rather than having all clients try the
first listed server first every time.</li>
<li><strong>NO-CHECK-NAMES:</strong> Sets RES_NOCHECKNAME in _res.options, which disables
the modern BIND checking of incoming host names and mail names for invalid
characters such as underscore (_), non-ASCII, or control characters. </li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">QIBM_BIND_RESOLVER_FLAGS</h4><p>Set this environment variable
to a space separated list of resolver option flags. This overrides the RES_DEFAULT
options (struct state.options) and system configured values (Change TCP/IP
Domain - CHGTCPDMN). The state options structure is initialized normally,
using RES_DEFAULT, OPTIONS environment values and CHGTCPDMN configured values.
Then this environment variable is used to override those defaults. The flags
named in this environment variable might be prepended with a '+', '-' or 'NOT_'
to set ('+') or reset ('-','NOT_') the value. </p>
<p>For example, to turn
on RES_NOCHECKNAME and turn off RES_ROTATE, use the following command from
a character-based interface: </p>
<pre> ADDENVVAR ENVVAR(QIBM_BIND_RESOLVER_FLAGS) VALUE('RES_NOCHECKNAME NOT_RES_ROTATE')</pre>
<p>or</p>
<pre> ADDENVVAR ENVVAR(QIBM_BIND_RESOLVER_FLAGS) VALUE('+RES_NOCHECKNAME -RES_ROTATE')</pre>
</div>
<div class="section"><h4 class="sectiontitle">QIBM_BIND_RESOLVER_SORTLIST</h4><p>Set this environment
variable to a space-separated list of up to ten IP addresses/mask pairs in
dotted decimal format (9.5.9.0/255.255.255.0) to create a sort list (struct
state.sort_list).</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns.htm" title="iSeries provides applications with access to the Domain Name System (DNS) through the resolver functions.">Domain Name System support</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../apis/resini.htm">res_init()</a></div>
<div><a href="../apis/resninit.htm">res_ninit()</a></div>
<div><a href="../apis/resqry.htm">res_query()</a></div>
</div>
</div>
</body>
</html>