GetAllDomains


Definition

Get all domain names in an account.

Usage

Use this command to list all the domain names in an account, with their domain name IDs and expiration dates.

We recommend that you use this command only for accounts with fewer than 200 names, because longer lists can time out. For large accounts, use GetDomains.

Availability

All resellers have access to this command.

Implementation on eNom.com

This command is not implemented on enom.com.

Constraints

The query must meet the following requirements:

  • We recommend that you use this command only for accounts with fewer than 200 names, becauselonger lists can time out. For large accounts, use GetDomains.
  • The login ID and password must be valid.

Input parameters

Build the query string using this syntax:

https://resellertest.enom.com/interface.asp?
command=nameofcommand&uid=yourloginid&pw=yourpassword
&paramname=paramvalue&nextparamname=nextparamvalue

 

Parameter Status Description Max Size
UID Required Account login ID 20
PW Required Account password 20
UseDNS Optional Returns a list of domains that use custom (user-specified) name servers. Permitted value is custom. 10
GetDefaultOnly Optional Returns default name servers. Value is 1. 1
Letter Optional Returns domains with the specified first character. Permitted values are 0 through 9 and A through Z. 1
RegistrarLock Optional Returns domains with the specified Registrar Lock status. Permitted values are Locked and Not Locked. 10
AutoRenew Optional Returns domains with the specified Auto Renew status. Permitted values are Yes and No. 3
Name Optional Returns domains with the specified name, on record for the contact type specified in ContactType. Permitted values are space-separated first and last names, for example, Name=John Doe. 40
ContactType Optional Returns domains with the specified name, on record for the contact type specified in ContactType. Permitted values are Registrant, Aux Billing, Technical, or Administrative. 14
NameServer Optional Returns domains that use the specified name server. Use format dns1.nameserver.com. 135
UseEnomNS Optional Returns domains that use the specified name servers. Permitted values are Yes or No. 3
ResponseType Optional Format of response. Options are XML (recommended), HTML, or Text (default). 4

 

Returned parameters and values

Parameter Description
DomainName Name of the domain described in this node
DomainNameID Database ID of this domain
Expiration-Date Expiration date of this domain
Command Name of command executed
ErrCount The number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
ErrX Error messages explaining the failure. These can be presented as is back to the client.
Done True indicates this entire response has reached you successfully.

 

Notes

  • The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.
  • Check the return parameter ErrCount. If greater than 0 the transaction failed. The parameterErr(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.

Example