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.
LinuxHub: Your Gateway to Reliable Web Hosting Solutions
Empowering Your Web Presence with Linux: Hosting Made Simple!
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.