Setting Recursion Type

The type of recursion can be changed by the set-recursion operation. Before setting the recursion type, make sure it is supported by the server.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 
Request Packet Structure

A request XML packet changing the recursion type includes the set-recursion operation node:

<packet version="1.4.2.0">
<dns>
   <set-recursion>
   ...
   </set-recursion>
</dns>
</packet>

 

The set-recursion node is presented by type DNSSetRecursionInputType (dns_input.xsd) and structured as follows:

 

 
Response Packet Structure

The set-recursion node is presented by type DNSSetRecursionOutputType (dns_output.xsd) and is structured as follows:

 

 
Samples
Allowing all recursive requests to the local DNS server

This packet allows all recursive requests to the local DNS server.

<packet version="1.4.2.0">
<dns>
 <set-recursion>
  <value>on</value>
 </set-recursion>
</dns>
</packet>

Response:

<code><packet version="1.4.2.0"></code>
<dns></code>
 <set-recursion></code>
  <result></code>
   <status>ok</status></code>
  </result></code>
 </set-recursion></code>
</dns></code>
</packet></code>
Allowing recursive requests from the local net to the local DNS server

This packet allows recursive requests coming from the local net to the local DNS server.

<packet version="1.4.2.0">
<dns>
 <set-recursion>
  <value>localnets</value>
 </set-recursion>
</dns>
</packet>