Description
This function performs an A record DNS query for the account's hostname.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
host |
string |
Required The domain. |
Any valid domain name. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
line |
string |
The domain's DNS A records. |
A DNS A Record. |
example.com.\t\t900\tIN\tA\t12.45.148.5 |
reason |
string |
A reason for failure Note:
This function only returns areason value if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded.
|
|
1 |