Domain check
Asks whether a name can be registered. The command changes nothing, costs nothing and reserves nothing: a name that is free when the answer reaches you can be taken by somebody else a second later.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<check>
<domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:name>example.kyiv.ua</domain:name>
</domain:check>
</check>
<clTRID>EXAMPLE-1-chk-0001</clTRID>
</command>
</epp>
You can put several names in one command, and you should: the server asks the registry once for the whole command rather than once per name. How many names are allowed in one request is in Registry parameters.
Response
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:cd>
<domain:name avail="1">example.com.ua</domain:name>
</domain:cd>
<domain:cd>
<domain:name avail="0">example.kyiv.ua</domain:name>
<domain:reason>in use</domain:reason>
</domain:cd>
</domain:chkData>
</resData>
<trID>…</trID>
</response>
avail="1" means the name can be registered now. avail="0" means it cannot, and <domain:reason> then says why. There are five reasons, and these are exactly the strings the server sends:
<domain:reason> | What it means |
|---|---|
in use | the name is already registered — including by a registration of your own that is still running |
reserved | a name on the stop list, or a zone name itself, such as com.ua |
not served | we do not run this zone, or the name is not exactly one level below it, as in www.example.com.ua |
invalid name | the spelling breaks the zone's rules on length, hyphens or character set |
not available | we do run the zone, but it accepts no new registrations |
1000 means "question accepted", not "the name is free". The command succeeds even when none of the names can be registered: unavailability is data, not an error. Branch on avail, not on the result code.
The price in the same response
Declare urn:ietf:params:xml:ns:epp:fee-1.0 at login and put a <fee:check> in the command — the list of operations you want priced. Each one takes its own term; leave it out and one year is assumed. You can ask about create, renew, transfer, restore, update and delete.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<check>
<domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
</domain:check>
</check>
<extension>
<fee:check xmlns:fee="urn:ietf:params:xml:ns:epp:fee-1.0">
<fee:currency>UAH</fee:currency>
<fee:command name="create">
<fee:period unit="y">1</fee:period>
</fee:command>
<fee:command name="renew">
<fee:period unit="y">2</fee:period>
</fee:command>
<fee:command name="transfer"/>
</fee:check>
</extension>
<clTRID>EXAMPLE-1-chk-0002</clTRID>
</command>
</epp>
The prices arrive in <extension>, beside <resData>. The amounts below are invented for the example; your own response carries yours.
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:cd>
<domain:name avail="1">example.com.ua</domain:name>
</domain:cd>
</domain:chkData>
</resData>
<extension>
<fee:chkData xmlns:fee="urn:ietf:params:xml:ns:epp:fee-1.0">
<fee:currency>UAH</fee:currency>
<fee:cd>
<fee:objID>example.com.ua</fee:objID>
<fee:command name="create" standard="1">
<fee:period unit="y">1</fee:period>
<fee:fee description="registration">350.00</fee:fee>
</fee:command>
<fee:command name="renew" standard="1">
<fee:period unit="y">2</fee:period>
<fee:fee description="renewal">700.00</fee:fee>
</fee:command>
<fee:command name="transfer" standard="1">
<fee:period unit="y">1</fee:period>
<fee:fee description="transfer">350.00</fee:fee>
</fee:command>
</fee:cd>
</fee:chkData>
</extension>
<trID>
<clTRID>EXAMPLE-1-chk-0002</clTRID>
<svTRID>NSPC-20261105093000-7C4F19A2B8D3</svTRID>
</trID>
</response>
| What to read | What it means |
|---|---|
<fee:currency> | the currency of the answer. We quote in hryvnia; a request in another currency is not converted but marks the name avail="0" with a reason |
standard="1" | the zone's ordinary price. No such attribute means the name is premium |
<fee:period> | the term the amount covers. For transfer and restore it is always one year, whatever term you asked for, because that is how those operations run |
<fee:fee> | the amount you would be charged if you sent this operation now |
<fee:reason> instead of <fee:fee> | there is no price: the operation is closed for the zone, or unavailable to your account |
update and delete are free here, so the response quotes them as 0.00.
Premium names
A premium name does not cost what an ordinary name in the same zone costs. The server marks such names in every check response, whether or not you asked for prices:
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:cd>
<domain:name avail="1">premium.com.ua</domain:name>
</domain:cd>
</domain:chkData>
</resData>
<extension>
<nspc:chkData xmlns:nspc="http://namespace.com.ua/epp/registry-1.0">
<nspc:cd>
<nspc:name premium="1">premium.com.ua</nspc:name>
</nspc:cd>
</nspc:chkData>
</extension>
<trID>
<clTRID>EXAMPLE-1-chk-0003</clTRID>
<svTRID>NSPC-20261105093012-B5E803A17C6D</svTRID>
</trID>
</response>
This block lists only premium names. A name missing from it is not premium; if none of the names was premium, the block is absent altogether. Premium names are the reason a program with a hard-coded per-zone price eventually bills a customer the wrong amount, so ask for the price rather than computing it. See Balance and fees.
Result codes
| Code | When |
|---|---|
1000 | answered — read avail for each name |
2001 | more names than the check limit allows |
Notes
A check does not reserve the name. Between your check and your registration, anyone can take it. Only a registration holds a name — including one that answered 1001: until it finishes, the name is held for you.
in use can be your own name. Your registration that answered 1001 holds the name against your account, and for as long as it does the name is unavailable to everybody — you included. Wait for the message in the queue rather than sending the registration again.
On this page