query (surname)

Queries the properties of the domain.

Request parameters for query (surname)

Standard parameters

  • action = query
  • object = surname

Attributes

Parameters within the attributes associative array are described below.

Parameter nameObligationDefinition/Value
domainRequiredThe Personal Names domain to be queried.
query_dnsOptionalRequests information about the DNS settings.

0—Do not return DNS information; this is the default.

1—Return all DNS records for the zone.
query_emailOptionalRequests information about the associated email account.

0—Do not return email account information; this is the default.

1—Return information about the email account.

Response parameters for query (surname)

Standard parameters

  • action = reply
  • object = surname
  • is_success = a Boolean is returned, indicating success or failure of the
    request
  • response_code = response code indicating outcome of the request
  • response_text = message describing the outcome of the request

Attributes

If the request is successful, the attributes associative array may include the
following:

Parameter nameObligationDefinition/Value
created_onReturned if is_success = trueDate the domain was created.
domainReturned if is_success = trueThe Personal Names domain to which the returned values apply.
mailboxOptionalInformation about the mailbox.

For more information, see the Mailbox table below.
stateOptionalCurrent status of the Personal Names domain. Available value is active.
zoneOptionalInformation about the DNS records.

For more information, see the Zone table below.

Mailbox

Parameters within the mailbox associative array are described below.

Parameter nameObligationDefinition/Value
forward_emailOptionalThe address to which email is forwarded.
mailbox_typeOptionalThe type of mailbox: MAILBOX or WEBMAIL_ONLY.

Records

Parameters within the records associative array are described below.

Parameter nameObligationDefinition/Value
contentOptionalThe IP address or fully qualified domain name.
nameOptionalThe unqualified domain name or @ symbol.
typeOptionalThe type of DNS record. Allowed values are A and CNAME.

Zone

Parameters within the zone associative array are described below.

Parameter nameObligationDefinition/Value
recordsOptionalA list of the DNS records associated with the domain, along with their values.
zone_idOptionalInternal identifier for the DNS zone.

Examples for query (surname)

Request

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">QUERY</item>
                <item key="object">SURNAME</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="domain">steven.smith.net</item>
                        <item key="query_email">1</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>

Response

<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">SURNAME</item>
                <item key="response_text">Command completed successfully.</item>
                <item key="action">QUERY:REPLY</item>
                <item key="response_code">200</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="domain">steven.smith.net</item>
                        <item key="created_on">2016-05-12T21:39:11.000-04:00</item>
                        <item key="mailbox">
                            <dt_assoc>
                                <item key="response_text">OK</item>
                                <item key="is_success">1</item>
                                <item key="mailbox_type">MAILBOX</item>
                            </dt_assoc>
                        </item>
                        <item key="state">active</item>
                    </dt_assoc>
                </item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>