Host create

Creates a name server object so domains can be delegated to it.

Request

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <command>
    <create>
      <host:create xmlns:host="urn:ietf:params:xml:ns:host-1.0">
        <host:name>ns1.example.com.ua</host:name>
        <host:addr ip="v4">203.0.113.10</host:addr>
        <host:addr ip="v6">2001:db8::10</host:addr>
      </host:create>
    </create>
    <clTRID>EXAMPLE-1-hcr-0001</clTRID>
  </command>
</epp>

The address rule

A subordinate host must have at least one address. Its name is inside a zone we serve, so the parent zone publishes glue, and without an address there is nothing to publish. Omitting it is 2003.

An external host must have none. Its name lives under somebody else's domain, which answers for it. Sending <host:addr> for such a host is refused with 2306 — "IP addresses are only accepted for hosts subordinate to a served zone" — and not quietly ignored.

So a client that always emits addresses is wrong half the time. Decide from the name: is it inside a zone we serve, or not?

Addresses must be public Internet addresses, and there is a limit of 13 per host.

Response

<resData>
  <host:creData xmlns:host="urn:ietf:params:xml:ns:host-1.0">
    <host:name>ns1.example.com.ua</host:name>
    <host:crDate>1970-01-01T00:00:00.000+03:00</host:crDate>
  </host:creData>
</resData>

Creating a host is free.

What the server refuses, in its own words

Each refusal arrives as a result code and a sentence in <result><msg>, in the shape Commands and responses shows. The sentence is translated into the language you chose at login where a translation exists, and the lang attribute says which language you are being given. Branch on the code, never on the sentence — the code is the contract, the wording is not.

CodeWhat the message says
2001At most 13 IP addresses per host
2003A host subordinate to a served zone requires at least one IP address (glue)
2005Invalid host name
2201Superordinate domain is not sponsored by you
2303Superordinate domain does not exist
2306IP addresses are only accepted for hosts subordinate to a served zone

Result codes

CodeWhen
1000created
2001more than 13 addresses
2003a subordinate host with no address
2005the name, or an address, is malformed
2302the host already exists
2306addresses on an external host, or a private/reserved address

Notes

A 2302 is usually fine. Somebody — possibly you, possibly another registrar — already created that object, and a domain can be delegated to it as it stands. Reference it rather than trying again.

Create the hosts before the domain. domain create referencing a host that does not exist answers 2303, and the order is not something the server will sort out for you.


On this page