Introduction
Editing DNS zones can be done using the WHM API using the ediitzonerecord API call.
Procedure
First, you need to use the dumpzone APII call line number of the record, in this example, I am looking for the A record for example.com::
-bash-4.2# whmapi1 dumpzone domain=example.com
----SNIP----
-
Line: 15
address: 10.2.32.170
class: IN
name: example.com.
ttl: 14400
type: A
----SNIP---
Now I use the ediitzonerecord to make the change:
whmapi1 editzonerecord domain=example.com line=15 name=example.com. class=IN ttl=86400 type=A address=192.168.0.20