FRED v2026.1 Documentation

5.6.1. Create domain

A domain create command is used to register a new domain.

The contact create command is a create element in the domain namespace (http://www.nic.cz/xml/epp/domain-1.4).

The command must be contained in the <create> command type.

5.6.1.1. Command element structure

The <domain:create> element must declare the domain namespace and schema, and it must contain the following child elements:

  • <domain:name> (1) – a domain name as eppcom:labelType,

  • <domain:period> (0..1) – the registration period as domain:pLimitType,

    • @unit (R) – the unit the period is counted in; it can be either m for months or y for years.

    If omitted, the domain expiration is set to the minimum. (FRED’s default: 1 year)

  • <domain:nsset> (0..1) – an nsset handle to associate as fredcom:objIDType,

  • <domain:keyset> (0..1) – the keyset handle to associate as fredcom:objIDType,

  • <domain:registrant> (1) – the domain owner handle as fredcom:objIDType,

  • <domain:admin> (0..n) – an administrative contact handle as fredcom:objIDType,

  • <domain:authInfo> (0..1) – authorization information (AuthInfo) as fredcom:authInfoType; the AuthInfo will be generated by the server.

Example
<?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>
      <create>
         <domain:create xmlns:domain="http://www.nic.cz/xml/epp/domain-1.4"
          xsi:schemaLocation="http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.5.xsd">
            <domain:name>example.cz</domain:name>
            <domain:nsset>NSSET-MYNSSET</domain:nsset>
            <domain:registrant>MYOWN</domain:registrant>
            <domain:admin>ADMIN1</domain:admin>
         </domain:create>
      </create>
      <clTRID>zbdm002#17-08-09at12:31:47</clTRID>
   </command>
</epp>
5.6.1.2. Response element structure

The response from the FRED EPP server contains the result, response data, and transaction identification.

See also Success or failure of a command.

The response data element (<resData>) contains a single child element <domain:creData> which declares the domain namespace and schema and it contains the following child elements:

Example
<?xml version="1.0" encoding="UTF-8"?>
<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:creData xmlns:domain="http://www.nic.cz/xml/epp/domain-1.4"
          xsi:schemaLocation="http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.5.xsd">
            <domain:name>example.cz</domain:name>
            <domain:crDate>2017-08-09T12:31:49+02:00</domain:crDate>
            <domain:exDate>2018-08-09</domain:exDate>
         </domain:creData>
      </resData>
      <trID>
         <clTRID>zbdm002#17-08-09at12:31:47</clTRID>
         <svTRID>ReqID-0000141086</svTRID>
      </trID>
   </response>
</epp>