ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/resnquerydomain.htm

110 lines
3.2 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>res_nquerydomain()--Send 2 String Domain Query</title>
<!-- Begin Header Records ========================================== -->
<!-- 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. -->
<!-- Unix8 SCRIPT J converted by B2H R4.1 (346) (CMS) by V2KEA304 -->
<!-- at RCHVMW2 on 17 Feb 1999 at 11:05:09 -->
<!-- Edited by Kersten Feb 02 -->
<!--End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>res_nquerydomain()--Send 2 String Domain Query</h2>
<div class="box" style="width: 60%;">
<br>
&nbsp;&nbsp;Syntax<br>
<pre>
#include &lt;sys/types.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;arpa/nameser.h&gt;
#include &lt;resolv.h&gt;
void res_nquerydomain(state* <em>res</em>,
const char *<em>string1</em>,
const char *<em>string2</em>,
int <em>class</em>,
int <em>type</em>,
unsigned char *<em>answer_buffer</em>,
int <em>answer_buffer_length</em>)
</pre>
<br>
&nbsp;&nbsp;Service Program Name: QSOSRV2<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The <em>res_nquerydomain()</em> concatenates <em>string1</em> +
<em>string2</em> into a new <em>domain_name</em> parameter and calls
<em>res_nquery()</em>. For more information on <em>domain_name</em>, the
remaining parameters, authorities required, return values, and related
information, see <a href="resnquery.htm">res_nquery()--Send Domain
Query</a>.</p>
<br>
<h3>Parameters</h3>
<dl>
<dt><strong>string1</strong></dt>
<dd>(Input) The pointer to the first string. In practice this is generally a
host name.<br>
<br>
</dd>
<dt><strong>string2</strong></dt>
<dd>(Input) The pointer to the first string. In practice this is generally a
zone name.</dd>
</dl>
<br>
<h3>Related Information</h3>
<ul>
<li><a href="resnquery.htm">res_nquery()</a>--Send Domain Query</li>
</ul>
<br>
<h3>Example</h3>
<p>See <a href="../apiref/aboutapis.htm#codedisclaimer">Code disclaimer information</a>
for information pertaining to code examples.</p>
<p>See <a href="resninit.htm">res_ninit()</a> for an example of how
<em>hstrerror()</em> is used.</p>
<hr>
API introduced: V5R1
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a> </td>
</tr>
</table>
</center>
</body>
</html>