Host check
Asks whether a host name is already an object in the registry. Changes nothing and costs nothing.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<check>
<host:check xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns1.example.com.ua</host:name>
<host:name>ns2.example.com.ua</host:name>
</host:check>
</check>
<clTRID>EXAMPLE-1-hchk-0001</clTRID>
</command>
</epp>
Response
<resData>
<host:chkData xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:cd><host:name avail="1">ns1.example.com.ua</host:name></host:cd>
<host:cd>
<host:name avail="0">ns2.example.com.ua</host:name>
<host:reason>in use</host:reason>
</host:cd>
</host:chkData>
</resData>
avail="1" means no such object exists yet, so a create would succeed. avail="0" means it exists — which is not a problem: an existing host can be referenced by a domain just as well as one you create yourself.
When you need it
Before delegating a domain to a name server, check whether the host object exists. If it does, reference it. If it does not, create it first — domain create will not invent it for you, and a reference to a host that does not exist is 2303.
For an external name server used by many of your customers, this check is how you avoid trying to create the same object a second time and getting 2302.
Result codes
| Code | When |
|---|---|
1000 | answered — read avail for each name |
2001 | more names than the check limit allows |
On this page