If you want to add the domain DNS then you can run below command.
whmapi1 adddns domain='example.com' ip='192.168.1.20'
Above command will add domain DNS with specific IP address.
Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog
If you want to add the domain DNS then you can run below command.
whmapi1 adddns domain='example.com' ip='192.168.1.20'
Above command will add domain DNS with specific IP address.