.pdf)
WHM Plugins
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | Net::dnszone( host ) |
| Description: | Return the DNS zone information for a specified domain. |
| Parameters: | |
| host (string) | |
| The domain name to query. | |
| Returns: | |
The output should resemble the following: ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> example.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57253 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 ;; QUESTION SECTION: ;example.com. IN A ;; ANSWER SECTION: example.com. 172312 IN A 192.0.32.10 ;; AUTHORITY SECTION: example.com. 172312 IN NS b.iana-servers.net. example.com. 172312 IN NS a.iana-servers.net. ;; ADDITIONAL SECTION: a.iana-servers.net. 3496 IN A 192.0.34.43 b.iana-servers.net. 21112 IN A 193.0.0.236 b.iana-servers.net. 21112 IN AAAA 2001:610:240:2::c100:ec ;; Query time: 2 msec ;; SERVER: 208.74.121.103#53(208.74.121.103) ;; WHEN: Sat Mar 20 20:34:55 2010 ;; MSG SIZE rcvd: 153 |
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | Net::sethastraceroute( ) |
| Description: | Print whether the traceroute binary can be found on the server. This function checks the following directories: /bin, /sbin, /usr/sbin, /usr/local/sbin, /usr/bin, and /usr/local/bin. This function also sets the following cPanel environment variable: $Cpanel::CPVAR{'Net_traceroute_disabled'}. |
| Returns: | |
The function will return 0 if the traceroute binary is found. The function will return 1 if the traceroute binary is not found.
|
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | Net::dnslookup( host ) |
| Description: | Perform a DNS lookup on a specified domain. This function returns the domain's IP address and A record. This function requires access to the 'nettools' feature. It is not available in demo mode. |
| Parameters: | |
| host (string) | |
| The domain name on which to perform the DNS lookup. | |
| Returns: | |
The output should resemble the following: example.com has address 192.0.32.10<br /> |