cPanel API 2 Modules - DnsLookup
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The DnsLookup module accesses DNS functionality.
Available functions
cPanel API 2 Functions - DnsLookup::name2ip
— This function returns a domain's IP address.