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 and WHM | linux webhosting blog | Linux Security and Solutions
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.