.pdf)
WHM Plugins
addzonerecord function allows you to add reverse DNS functionality using PTR records. PTR records are used in reverse DNS lookups that convert IP addresses into domain names.
addzonerecord function from within your custom script:
/xml-api/addzonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/addzonerecord
addzonerecord function from within your custom script:
/json-api/addzonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/addzonerecord
addzonerecord call requires 4 input parameters: 192.168.0.1, you would enter 1 in this parameter.
example.com).
PTR.
addzonerecord function. 1 — true.
0 — false.
https://www.example.com:2087/xml-api/addzonerecord?zone=0.168.192.in-addr.arpa&name=1&ptrdname=example.com&type=PTR would create the following line in /var/named/0.168.192.in-addr.apra:
The output should resemble the following using XML API:1 14400 PTR example.com.
<addzonerecord>
<result>
<status>1</status>
<statusmsg>Bind reloading on server1 using rndc zone: [0.168.192.in-addr.arpa]</statusmsg>
</result>
</addzonerecord>
https://www.example.com:2087/json-api/addzonerecord?zone=0.168.192.in-addr.arpa&name=1&ptrdname=example.com&type=PTR would create the following line in /var/named/0.168.192.in-addr.apra:
The output should resemble the following using JSON API:1 14400 PTR example.com.
{
"result":[
{
"status":1,
"statusmsg":"Bind reloading on server1 using rndc zone: [0.168.192.in-addr.arpa]\n"
}
]
}
https://www.example.com:2087/xml-api/addzonerecord?zone=2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa&name=6.2&ptrdname=example.com&type=PTR would create the following line in /var/named/2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa :
The output should resemble the following using XML API:6.2 14400 PTR example.com.
<addzonerecord>
<result>
<status>1</status>
<statusmsg>Bind reloading on server1 using rndc zone: [2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa]</statusmsg>
</result>
</addzonerecord>
https://www.example.com:2087/json-api/addzonerecord?zone=2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa&name=6.2&ptrdname=example.com&type=PTR would create the following line in /var/named/2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa :
The output should resemble the following using JSON API:6.2 14400 PTR example.com.
{
"result":[
{
"status":1,
"statusmsg":"Bind reloading on server1 using rndc zone: [2.0.0.0.0.0.0.2.d.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.ip6.arpa]\n"
}
]
}