Removing Host From ACL

To remove a host from the ACL of your name server, use the remove_from_acl operation. You can remove multiple hosts from the ACL using a single packet. This operation is available on Linux only.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 
Request Packet Structure

A request XML packet removing a host from the ACL includes the remove_from_acl operation node:

<packet version="1.4.2.0">
<dns>
   <remove_from_acl>
   ...
   </remove_from_acl>
</dns>
</packet>

 

The graphical representation of the remove_from_acl node is as follows:

REMHFROMACL

You can remove multiple hosts from the ACL in a single packet using filters. Add as many host parameters to the filter node as the number of hosts you want to remove from ACL.

 
Response Packet Structure

The remove_from_acl node of the output XML packet is structured as follows:

 

 
Samples
Removing a single host from ACL

This request packet removes host 192.168.34.56 from the ACL.

<packet>
<dns>
 <remove_from_acl>
  <filter>
   <host>192.168.34.56</host>
  </filter>
 </remove_from_acl>
</dns>
</packet>

Response:

<packet>
<dns>
 <remove_from_acl>
  <result>
   <status>ok</status>
   <host>192.168.34.56</host>
  </result>
 </remove_from_acl>
</dns>
</packet>
Removing a host from ACL two twice

This request packet remove host 192.168.34.56 from ACL two times.

<packet>
<dns>
 <remove_from_acl>
  <filter>
   <host>192.168.34.56</host>
  </filter>
 </remove_from_acl>
 <remove_from_acl>
  <filter>
   <host>192.168.34.56</host>
  </filter>
 </remove_from_acl>
</dns>
</packet>

Response:

<packet>
<dns>
 <remove_from_acl>
  <result>
   <status>ok</status>
   <host>192.168.34.56</host>
  </result>
 </remove_from_acl>
 <remove_from_acl>
  <result>
   <status>error</status>
   <errcode>1007</errcode>
   <errtext>IP address 192.168.34.56 already exists.</errtext>
  </result>
 </remove_from_acl>
</dns>
</packet>