Personal tools

From HEXONET Wiki

Revision as of 06:41, 1 May 2014 by WikiAdmin (Talk | contribs)

Jump to: navigation, search


EPP example of an availability check for .UK domain names that are not subject to a right of registration:

COMMAND

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
    <command>
        <check>
            <domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd">
                <domain:name>randomdomain.uk</domain:name>
                <domain:name>nic.uk</domain:name>
                <domain:name>example.uk</domain:name>
            </domain:check>
        </check>
        <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
    </command>
</epp>


RESPONSE

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
    <response>
        <result code="1000">
            <msg>Command completed successfully</msg>
        </result>
        <resData>
            <domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd">
                <domain:cd>
                    <domain:name avail="1">randomdomain.uk</domain:name>
                </domain:cd>
                <domain:cd>
                    <domain:name avail="0">nic.uk</domain:name>
                </domain:cd>
                <domain:cd>
                    <domain:name avail="1">example.uk</domain:name>
                </domain:cd>
            </domain:chkData>
        </resData>
        <trID>
            <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
            <svTRID>RO-26558-1398926441790440</svTRID>
        </trID>
    </response>
</epp>